Skip to content

Commit

Permalink
Correct rmeta/rlib test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jan 20, 2020
1 parent 4bb6882 commit be663bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/ui/rmeta-rpass.rs
@@ -1,6 +1,11 @@
// run-pass
// Test that using rlibs and rmeta dep crates work together. Specifically, that
// there can be both an rmeta and an rlib file and rustc will prefer the rlib.
// there can be both an rmeta and an rlib file and rustc will prefer the rmeta
// file.
//
// This behavior is simply making sure this doesn't accidentally change; in this
// case we want to make sure that the rlib isn't being used as that would cause
// bugs in -Zbinary-dep-depinfo (see #68298).

// aux-build:rmeta-rmeta.rs
// aux-build:rmeta-rlib-rpass.rs
Expand All @@ -9,5 +14,5 @@ extern crate rmeta_aux;
use rmeta_aux::Foo;

pub fn main() {
let _ = Foo { field: 42 };
let _ = Foo { field2: 42 };
}

0 comments on commit be663bf

Please sign in to comment.