]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53427 - eddyb:uniform-paths-diagnostics, r=varkor
authorbors <bors@rust-lang.org>
Fri, 17 Aug 2018 00:28:16 +0000 (00:28 +0000)
committerbors <bors@rust-lang.org>
Fri, 17 Aug 2018 00:28:16 +0000 (00:28 +0000)
commitf34933ba0ab615328de1f7323ad54376c8fa4dc1
treebb253b969e159691d5d66e6b9297cf9caafbeca6
parent81ba448f7581fbde530db2e0bb23597cea35d9bb
parent7a87e30f410edac790bffa7ef10d1d184f3733b9
Auto merge of #53427 - eddyb:uniform-paths-diagnostics, r=varkor

rustc_resolve: overhaul `#![feature(uniform_paths)]` error reporting.

Fixes #53408 by only considering external crates to conflict within their (type/module) namespace, *not* with the value or macro namespaces, and also by adding a special-cased error for redundant `use crate_name;` imports (without actually allowing them).
Also, all canaries for a given import are grouped into one diagnostic per namespace, in order to make block-scoped ambiguities clearer.
See changed/added tests for more details.

r? @petrochenkov cc @aturon @joshtriplett