-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE "inconsistent resolution for an import" with two enums #105069
Comments
Same error message as #83950, but this one is self-contained and might be a separate bug. |
@rustbot claim |
@compiler-errors rust/compiler/rustc_resolve/src/imports.rs Line 672 in cef44f5
Seems we don't have a chance to insert If we change code to this: use self::A::*;
use self::B::*;
use V;
enum A {
V
}
enum B {
V
}
fn main() {} It will be:
rust/compiler/rustc_resolve/src/lib.rs Line 1688 in cef44f5
|
Could we register an |
Yes, this is also a solution, and then we can report error in the same function |
…gillot Add AmbiguityError for inconsistent resolution for an import Fixes rust-lang#105069 Fixes rust-lang#83950
Code
Error output
thread 'rustc' panicked at 'compiler/rustc_resolve/src/imports.rs:818: inconsistent resolution for an import', compiler/rustc_middle/src/util/bug.rs:36
Backtrace
Regression
Regression in nightly-2018-12-30
Version
The text was updated successfully, but these errors were encountered: