File tree 6 files changed +11
-10
lines changed
src/tools/run-make-support/src
6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ pub fn htmldocck() -> Command {
87
87
python
88
88
}
89
89
90
+ /// Path to the root rust-lang/rust source checkout.
90
91
pub fn source_path ( ) -> PathBuf {
91
92
env_var ( "S" ) . into ( )
92
93
}
Original file line number Diff line number Diff line change 2
2
// when the unstable no_global_oom_handling feature is turned on.
3
3
// See https://github.com/rust-lang/rust/pull/84266
4
4
5
- use run_make_support:: rustc;
5
+ use run_make_support:: { rustc, source_path } ;
6
6
7
7
fn main ( ) {
8
8
rustc ( )
9
9
. edition ( "2021" )
10
10
. arg ( "-Dwarnings" )
11
11
. crate_type ( "rlib" )
12
- . input ( "../../../ library/alloc/src/lib.rs")
12
+ . input ( source_path ( ) . join ( " library/alloc/src/lib.rs") )
13
13
. cfg ( "no_global_oom_handling" )
14
14
. run ( ) ;
15
15
}
Original file line number Diff line number Diff line change 2
2
// when the unstable no_rc feature is turned on.
3
3
// See https://github.com/rust-lang/rust/pull/84266
4
4
5
- use run_make_support:: rustc;
5
+ use run_make_support:: { rustc, source_path } ;
6
6
7
7
fn main ( ) {
8
8
rustc ( )
9
9
. edition ( "2021" )
10
10
. arg ( "-Dwarnings" )
11
11
. crate_type ( "rlib" )
12
- . input ( "../../../ library/alloc/src/lib.rs")
12
+ . input ( source_path ( ) . join ( " library/alloc/src/lib.rs") )
13
13
. cfg ( "no_rc" )
14
14
. run ( ) ;
15
15
}
Original file line number Diff line number Diff line change 2
2
// when the unstable no_sync feature is turned on.
3
3
// See https://github.com/rust-lang/rust/pull/84266
4
4
5
- use run_make_support:: rustc;
5
+ use run_make_support:: { rustc, source_path } ;
6
6
7
7
fn main ( ) {
8
8
rustc ( )
9
9
. edition ( "2021" )
10
10
. arg ( "-Dwarnings" )
11
11
. crate_type ( "rlib" )
12
- . input ( "../../../ library/alloc/src/lib.rs")
12
+ . input ( source_path ( ) . join ( " library/alloc/src/lib.rs") )
13
13
. cfg ( "no_sync" )
14
14
. run ( ) ;
15
15
}
Original file line number Diff line number Diff line change 1
1
// This test checks that the core library of Rust can be compiled without enabling
2
2
// support for formatting and parsing floating-point numbers.
3
3
4
- use run_make_support:: rustc;
4
+ use run_make_support:: { rustc, source_path } ;
5
5
6
6
fn main ( ) {
7
7
rustc ( )
8
8
. edition ( "2021" )
9
9
. arg ( "-Dwarnings" )
10
10
. crate_type ( "rlib" )
11
- . input ( "../../../ library/core/src/lib.rs")
11
+ . input ( source_path ( ) . join ( " library/core/src/lib.rs") )
12
12
. cfg ( "no_fp_fmt_parse" )
13
13
. run ( ) ;
14
14
}
Original file line number Diff line number Diff line change 2
2
// when the no_global_oom_handling feature is turned on.
3
3
// See https://github.com/rust-lang/rust/pull/110649
4
4
5
- use run_make_support:: { rustc, tmp_dir} ;
5
+ use run_make_support:: { rustc, tmp_dir, source_path } ;
6
6
7
7
fn main ( ) {
8
8
rustc ( )
9
9
. edition ( "2021" )
10
10
. arg ( "-Dwarnings" )
11
11
. crate_type ( "rlib" )
12
- . input ( "../../../ library/core/src/lib.rs")
12
+ . input ( source_path ( ) . join ( " library/core/src/lib.rs") )
13
13
. sysroot ( tmp_dir ( ) . join ( "fakeroot" ) )
14
14
. cfg ( "no_global_oom_handling" )
15
15
. run ( ) ;
You can’t perform that action at this time.
0 commit comments