rust-lang/rust — pull request #15733 by sanxiyn (2014-07-17 04:57:41+00:00)
Title: Disallow importing from types when reexport is involved

Importing from types was disallowed in #6462. Flag was set for paths whether it is a module or a type. Type flag was set when impl was seen. The problem is, for cross-crate situations, when reexport is involved, it is possible that impl is seen too late because metadata is loaded lazily.

Fix #15664.