Skip to content

Commit

Permalink
Rollup merge of rust-lang#68485 - kingslef:fix/test-60976, r=nikomats…
Browse files Browse the repository at this point in the history
…akis

add a test for rust-lang#60976

The test fails on 1.36.0 but passes on master.

Huge thanks for @hellow554 actually digging out the minimized version of the
repro.

Fixes rust-lang#60976.
  • Loading branch information
Dylan-DPC authored Jan 25, 2020
2 parents 8bf1758 + ad1cdec commit 5b95040
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/ui/use/auxiliary/extern-use-primitive-type-lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// compile-flags: --edition=2018

pub use u32;
7 changes: 7 additions & 0 deletions src/test/ui/use/issue-60976-extern-use-primitive-type.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Regression test for #60976: ICE (with <=1.36.0) when another file had `use <primitive_type>;`.
// check-pass
// aux-build:extern-use-primitive-type-lib.rs

extern crate extern_use_primitive_type_lib;

fn main() {}

0 comments on commit 5b95040

Please sign in to comment.