8 files changed +50
-32
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,11 @@ run-make/incr-foreign-head-span/Makefile
55
55
run-make/interdependent-c-libraries/Makefile
56
56
run-make/intrinsic-unreachable/Makefile
57
57
run-make/invalid-library/Makefile
58
- run-make/invalid-so/Makefile
59
58
run-make/issue-107094/Makefile
60
59
run-make/issue-109934-lto-debuginfo/Makefile
61
60
run-make/issue-14698/Makefile
62
61
run-make/issue-15460/Makefile
63
62
run-make/issue-18943/Makefile
64
- run-make/issue-20626/Makefile
65
63
run-make/issue-22131/Makefile
66
64
run-make/issue-25581/Makefile
67
65
run-make/issue-26006/Makefile
@@ -97,7 +95,6 @@ run-make/long-linker-command-lines-cmd-exe/Makefile
97
95
run-make/long-linker-command-lines/Makefile
98
96
run-make/longjmp-across-rust/Makefile
99
97
run-make/lto-dylib-dep/Makefile
100
- run-make/lto-empty/Makefile
101
98
run-make/lto-linkage-used-attr/Makefile
102
99
run-make/lto-no-link-whole-rlib/Makefile
103
100
run-make/lto-smoke-c/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // When a fake library was given to the compiler, it would
2
+ // result in an obscure and unhelpful error message. This test
3
+ // creates a false "foo" dylib, and checks that the standard error
4
+ // explains that the file exists, but that its metadata is incorrect.
5
+ // See https://github.com/rust-lang/rust/pull/88368
6
+
7
+ use run_make_support:: { dynamic_lib_name, fs_wrapper, rustc} ;
8
+
9
+ fn main ( ) {
10
+ fs_wrapper:: create_file ( dynamic_lib_name ( "foo" ) ) ;
11
+ rustc ( )
12
+ . crate_type ( "lib" )
13
+ . extern_ ( "foo" , dynamic_lib_name ( "foo" ) )
14
+ . input ( "bar.rs" )
15
+ . run_fail ( )
16
+ . assert_stderr_contains ( "invalid metadata files for crate `foo`" ) ;
17
+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Compiling Rust code twice in a row with "fat" link-time-optimizations used to cause
2
+ // an internal compiler error (ICE). This was due to how the compiler would cache some modules
3
+ // to make subsequent compilations faster, at least one of which was required for LTO to link
4
+ // into. After this was patched in #63956, this test checks that the bug does not make
5
+ // a resurgence.
6
+ // See https://github.com/rust-lang/rust/issues/63349
7
+
8
+ //@ ignore-cross-compile
9
+
10
+ use run_make_support:: rustc;
11
+
12
+ fn main ( ) {
13
+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=fat" ) . opt_level ( "3" ) . incremental ( "inc-fat" ) . run ( ) ;
14
+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=fat" ) . opt_level ( "3" ) . incremental ( "inc-fat" ) . run ( ) ;
15
+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=thin" ) . opt_level ( "3" ) . incremental ( "inc-thin" ) . run ( ) ;
16
+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=thin" ) . opt_level ( "3" ) . incremental ( "inc-thin" ) . run ( ) ;
17
+ }
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ // Despite the absence of any unsafe Rust code, foo.rs in this test would,
2
+ // because of the raw function pointer,
3
+ // cause undefined behavior and fail to print the expected result, "4" -
4
+ // only when activating optimizations (opt-level 2). This test checks
5
+ // that this bug does not make a resurgence.
6
+ // Note that the bug cannot be observed in an assert_eq!, only in the stdout.
7
+ // See https://github.com/rust-lang/rust/issues/20626
8
+
9
+ //@ ignore-cross-compile
10
+
11
+ use run_make_support:: { run, rustc} ;
12
+
13
+ fn main ( ) {
14
+ rustc ( ) . input ( "foo.rs" ) . opt ( ) . run ( ) ;
15
+ run ( "foo" ) . assert_stdout_equals ( "4" ) ;
16
+ }
0 commit comments