forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dbg macro test to use
check-run-results
flag for run-pass test
Updates the dbg-macro-expected behavior test to remove the workaround and use the `check-run-result` flag/feature in compiletest. This serves to test the feature on a real use-case (as mentioned in rust-lang#63751)
- Loading branch information
1 parent
0e3bc62
commit 12e0420
Showing
2 changed files
with
30 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.run.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[$DIR/dbg-macro-expected-behavior.rs:20] Unit = Unit | ||
[$DIR/dbg-macro-expected-behavior.rs:21] a = Unit | ||
[$DIR/dbg-macro-expected-behavior.rs:27] Point{x: 42, y: 24,} = Point { | ||
x: 42, | ||
y: 24, | ||
} | ||
[$DIR/dbg-macro-expected-behavior.rs:28] b = Point { | ||
x: 42, | ||
y: 24, | ||
} | ||
[$DIR/dbg-macro-expected-behavior.rs:36] | ||
[$DIR/dbg-macro-expected-behavior.rs:40] &a = NoCopy( | ||
1337, | ||
) | ||
[$DIR/dbg-macro-expected-behavior.rs:40] dbg!(& a) = NoCopy( | ||
1337, | ||
) | ||
[$DIR/dbg-macro-expected-behavior.rs:45] f(&42) = 42 | ||
before | ||
[$DIR/dbg-macro-expected-behavior.rs:50] { foo += 1; eprintln!("before"); 7331 } = 7331 | ||
[$DIR/dbg-macro-expected-behavior.rs:58] ("Yeah",) = ( | ||
"Yeah", | ||
) | ||
[$DIR/dbg-macro-expected-behavior.rs:61] 1 = 1 | ||
[$DIR/dbg-macro-expected-behavior.rs:61] 2 = 2 | ||
[$DIR/dbg-macro-expected-behavior.rs:65] 1u8 = 1 | ||
[$DIR/dbg-macro-expected-behavior.rs:65] 2u32 = 2 | ||
[$DIR/dbg-macro-expected-behavior.rs:65] "Yeah" = "Yeah" |