]> git.lizzy.rs Git - rust.git/commit
auto merge of #15733 : sanxiyn/rust/use-from-type, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 18 Jul 2014 11:51:20 +0000 (11:51 +0000)
committerbors <bors@rust-lang.org>
Fri, 18 Jul 2014 11:51:20 +0000 (11:51 +0000)
commit441866417764cb0ad32bce50ebda83deec525997
treef1fd7e8d1e688841135ecf717947fdf2f6f52687
parentd9f1d6b7f69f293ba5f060fd9e179de228d9497b
parent99bd9265d98b74283ee2fa7fa45782e83e5bb79c
auto merge of #15733 : sanxiyn/rust/use-from-type, r=alexcrichton

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.
src/librustc/middle/resolve.rs