Fix help for duplicated names: extern crate (...) as (...)

On the case of duplicated names caused by an `extern crate` statement
with a rename, don't include the inline suggestion, instead using a span
label with only the text to avoid incorrect rust code output.
This commit is contained in:
Esteban Küber 2017-11-07 18:01:35 -08:00
parent 7f6417e9b7
commit d0339c7e44
9 changed files with 74 additions and 8 deletions

View file

@ -18,5 +18,6 @@ extern crate libc as alloc;
//~^ ERROR E0259
//~| NOTE `alloc` reimported here
//~| NOTE `alloc` must be defined only once in the type namespace of this module
//~| NOTE You can use `as` to change the binding name of the import
fn main() {}