File tree 6 files changed +16
-6
lines changed
6 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ impl CompletedProcess {
216
216
/// Checks that `stderr` does not contain `unexpected`.
217
217
#[ track_caller]
218
218
pub fn assert_stderr_not_contains < S : AsRef < str > > ( & self , unexpected : S ) -> & Self {
219
- assert_not_contains ( & self . stdout_utf8 ( ) , unexpected) ;
219
+ assert_not_contains ( & self . stderr_utf8 ( ) , unexpected) ;
220
220
self
221
221
}
222
222
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ run-make/foreign-double-unwind/Makefile
17
17
run-make/foreign-exceptions/Makefile
18
18
run-make/foreign-rust-exceptions/Makefile
19
19
run-make/incr-add-rust-src-component/Makefile
20
- run-make/issue-35164/Makefile
21
20
run-make/issue-36710/Makefile
22
21
run-make/issue-69368/Makefile
23
22
run-make/issue-84395-lto-embed-bitcode/Makefile
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ // The byte positions in json format error logging used to have a small, difficult
2
+ // to predict offset. This was changed to be the top of the file every time in #42973,
3
+ // and this test checks that the measurements appearing in the standard error are correct.
4
+ // See https://github.com/rust-lang/rust/issues/35164
5
+
6
+ use run_make_support:: rustc;
7
+
8
+ fn main ( ) {
9
+ rustc ( )
10
+ . input ( "main.rs" )
11
+ . error_format ( "json" )
12
+ . run ( )
13
+ . assert_stderr_contains ( r#""byte_start":23"# )
14
+ . assert_stderr_contains ( r#""byte_end":29"# ) ;
15
+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments