File tree 4 files changed +18
-17
lines changed
incr-prev-body-beyond-eof
4 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,6 @@ run-make/static-pie/Makefile
246
246
run-make/staticlib-blank-lib/Makefile
247
247
run-make/staticlib-dylib-linkage/Makefile
248
248
run-make/std-core-cycle/Makefile
249
- run-make/suspicious-library/Makefile
250
249
run-make/symbol-mangling-hashed/Makefile
251
250
run-make/symbol-visibility/Makefile
252
251
run-make/symbols-include-type-name/Makefile
Original file line number Diff line number Diff line change 7
7
// was hashed by rustc in addition to the span length, and the fix still
8
8
// works.
9
9
10
- // FIXME: Ignore flags temporarily disabled for the test.
11
- // ignore-none
12
- // ignore-nvptx64-nvidia-cuda
13
-
14
10
use run_make_support:: { rustc, target, tmp_dir} ;
15
11
use std:: fs;
16
12
17
13
fn main ( ) {
18
- fs:: create_dir ( tmp_dir ( ) . join ( "src" ) ) ;
19
- fs:: create_dir ( tmp_dir ( ) . join ( "incr" ) ) ;
20
- fs:: copy ( "a.rs" , tmp_dir ( ) . join ( "main.rs" ) ) ;
14
+ fs:: create_dir ( tmp_dir ( ) . join ( "src" ) ) . unwrap ( ) ;
15
+ fs:: create_dir ( tmp_dir ( ) . join ( "incr" ) ) . unwrap ( ) ;
16
+ fs:: copy ( "a.rs" , tmp_dir ( ) . join ( "main.rs" ) ) . unwrap ( ) ;
21
17
rustc ( )
22
18
. incremental ( tmp_dir ( ) . join ( "incr" ) )
23
19
. input ( tmp_dir ( ) . join ( "src/main.rs" ) )
24
20
. target ( target ( ) )
25
21
. run ( ) ;
26
- fs:: copy ( "b.rs" , tmp_dir ( ) . join ( "main.rs" ) ) ;
22
+ fs:: copy ( "b.rs" , tmp_dir ( ) . join ( "main.rs" ) ) . unwrap ( ) ;
27
23
rustc ( )
28
24
. incremental ( tmp_dir ( ) . join ( "incr" ) )
29
25
. input ( tmp_dir ( ) . join ( "src/main.rs" ) )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // This test creates some fake dynamic libraries with nothing inside,
2
+ // and checks if rustc avoids them and successfully compiles as a result.
3
+
4
+ //@ ignore-cross-compile
5
+
6
+ use run_make_support:: { dynamic_lib, rustc} ;
7
+ use std:: fs:: File ;
8
+
9
+ fn main ( ) {
10
+ rustc ( ) . input ( "foo.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
11
+ File :: create ( dynamic_lib ( "foo-something-special" ) ) . unwrap ( ) ;
12
+ File :: create ( dynamic_lib ( "foo-something-special2" ) ) . unwrap ( ) ;
13
+ rustc ( ) . input ( "bar.rs" ) . run ( ) ;
14
+ }
You can’t perform that action at this time.
0 commit comments