``` rust mod foo { extern crate std; } fn main() { println!("{}", foo::std::mem::size_of::<i32>()); } ``` [Try on playpen](http://is.gd/yUwRYM). This is due to [`is_public` being `true` for all `ItemExternCrate` regardless of whether they are `pub`](https://github.com/rust-lang/rust/blob/1dac3adc34a85670d81f86345054ec58e658b68b/src/librustc_resolve/build_reduced_graph.rs#L395). Even then, `pub extern crate` is not handled correctly in all cases, see #26775.