5 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,6 @@ run-make/rlib-chain/Makefile
172
172
run-make/rlib-format-packed-bundled-libs-2/Makefile
173
173
run-make/rlib-format-packed-bundled-libs-3/Makefile
174
174
run-make/rlib-format-packed-bundled-libs/Makefile
175
- run-make/rmeta-preferred/Makefile
176
175
run-make/rustc-macro-dep-files/Makefile
177
176
run-make/rustdoc-io-error/Makefile
178
177
run-make/sanitizer-cdylib-link/Makefile
Original file line number Diff line number Diff line change 3
3
// and this test checks that this is still the case.
4
4
// See https://github.com/rust-lang/rust/pull/24423
5
5
6
- //FIXME(Oneirical): check if works without ignore freebsd
7
-
8
6
use run_make_support:: { invalid_utf8_contains, rustc} ;
9
7
10
8
fn main ( ) {
Original file line number Diff line number Diff line change @@ -10,5 +10,10 @@ fn main() {
10
10
rustc ( ) . input ( "baz.rs" ) . emit ( "metadata" ) . run ( ) ;
11
11
rustc ( ) . input ( "bar.rs" ) . emit ( "metadata" ) . extern_ ( "baz" , "libbaz.rmeta" ) . run ( ) ;
12
12
// There should be no internal compiler error message.
13
- rustc ( ) . input ( "foo.rs" ) . emit ( "metadata" ) . extern_ ( "bar" , "libbaz.rmeta" ) . run ( ) . assert_stderr_not_contains ( "unexpectedly panicked" ) ;
13
+ rustc ( )
14
+ . input ( "foo.rs" )
15
+ . emit ( "metadata" )
16
+ . extern_ ( "bar" , "libbaz.rmeta" )
17
+ . run ( )
18
+ . assert_stderr_not_contains ( "unexpectedly panicked" ) ;
14
19
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // This test compiles `lib.rs`'s dependency, `rmeta_aux.rs`, as both an rlib
2
+ // and an rmeta crate. By default, rustc should give the metadata crate (rmeta)
3
+ // precedence over the rust-lib (rlib). This test inspects the contents of the binary
4
+ // and that the correct (rmeta) crate was used.
5
+ // rlibs being preferred could indicate a resurgence of the -Zbinary-dep-depinfo bug
6
+ // seen in #68298.
7
+ // See https://github.com/rust-lang/rust/pull/37681
8
+
9
+ //@ ignore-cross-compile
10
+
11
+ use run_make_support:: { invalid_utf8_contains, invalid_utf8_not_contains, rustc} ;
12
+
13
+ fn main ( ) {
14
+ rustc ( ) . input ( "rmeta_aux.rs" ) . crate_type ( "rlib" ) . emit ( "link,metadata" ) . run ( ) ;
15
+ rustc ( ) . input ( "lib.rs" ) . crate_type ( "rlib" ) . emit ( "dep-info" ) . arg ( "-Zbinary-dep-depinfo" ) . run ( ) ;
16
+ invalid_utf8_contains ( "lib.d" , "librmeta_aux.rmeta" ) ;
17
+ invalid_utf8_not_contains ( "lib.d" , "librmeta_aux.rlib" ) ;
18
+ }
0 commit comments