File tree 2 files changed +2
-3
lines changed
src/tools/compiletest/src
tests/run-make/CURRENT_RUSTC_VERSION
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3515,7 +3515,6 @@ impl<'test> TestCx<'test> {
3515
3515
. arg ( & self . testpaths . file . join ( "rmake.rs" ) )
3516
3516
. env ( "TARGET" , & self . config . target )
3517
3517
. env ( "PYTHON" , & self . config . python )
3518
- . env ( "S" , & src_root)
3519
3518
. env ( "RUST_BUILD_STAGE" , & self . config . stage_id )
3520
3519
. env ( "RUSTC" , cwd. join ( & self . config . rustc_path ) )
3521
3520
. env ( "TMPDIR" , & rmake_out_dir)
Original file line number Diff line number Diff line change 5
5
6
6
use std:: path:: PathBuf ;
7
7
8
- use run_make_support:: { aux_build, rustc} ;
8
+ use run_make_support:: { aux_build, rustc, source_root } ;
9
9
10
10
fn main ( ) {
11
11
aux_build ( ) . input ( "stable.rs" ) . emit ( "metadata" ) . run ( ) ;
@@ -17,7 +17,7 @@ fn main() {
17
17
rustc ( ) . input ( "main.rs" ) . emit ( "metadata" ) . extern_ ( "stable" , & stable_path) . command_output ( ) ;
18
18
19
19
let stderr = String :: from_utf8_lossy ( & output. stderr ) ;
20
- let version = include_str ! ( concat! ( env! ( "S" ) , "/ src/version") ) ;
20
+ let version = std :: fs :: read_to_string ( source_root ( ) . join ( " src/version") ) . unwrap ( ) ;
21
21
let expected_string = format ! ( "stable since {}" , version. trim( ) ) ;
22
22
assert ! ( stderr. contains( & expected_string) ) ;
23
23
}
You can’t perform that action at this time.
0 commit comments