Skip to content

Commit be663bf

Browse files
Correct rmeta/rlib test
1 parent 4bb6882 commit be663bf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/ui/rmeta-rpass.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// run-pass
22
// Test that using rlibs and rmeta dep crates work together. Specifically, that
3-
// there can be both an rmeta and an rlib file and rustc will prefer the rlib.
3+
// there can be both an rmeta and an rlib file and rustc will prefer the rmeta
4+
// file.
5+
//
6+
// This behavior is simply making sure this doesn't accidentally change; in this
7+
// case we want to make sure that the rlib isn't being used as that would cause
8+
// bugs in -Zbinary-dep-depinfo (see #68298).
49

510
// aux-build:rmeta-rmeta.rs
611
// aux-build:rmeta-rlib-rpass.rs
@@ -9,5 +14,5 @@ extern crate rmeta_aux;
914
use rmeta_aux::Foo;
1015

1116
pub fn main() {
12-
let _ = Foo { field: 42 };
17+
let _ = Foo { field2: 42 };
1318
}

0 commit comments

Comments
 (0)