Rollup merge of #68485 - kingslef:fix/test-60976, r=nikomatsakis

add a test for #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 #60976.
This commit is contained in:
Yuki Okushi 2020-01-26 06:37:18 +09:00 committed by GitHub
commit 88429fb5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
// compile-flags: --edition=2018
pub use u32;

View File

@ -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() {}