]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #26385 - nham:fix_25396, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 18 Jun 2015 16:17:04 +0000 (16:17 +0000)
committerbors <bors@rust-lang.org>
Thu, 18 Jun 2015 16:17:04 +0000 (16:17 +0000)
Currently in the E0252 message, traits and modules are all called types (as in "a type named `Foo` has already been imported", even when `Foo` was a trait or module). This commit changes that to additionally detect when the import in question is a trait or module and report it accordingly.

Fixes #25396.

1  2 
src/librustc_resolve/resolve_imports.rs