-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
clippy ICEs: "Not a type: DefIndex(1359)', compiler/rustc_metadata/src/rmeta/decoder.rs:908:32" #6792
Comments
Possible reduced repro case, although the backtrace for this diverges after
Gives:
Backtrace
I don't think this has anything to do with As far as I can tell this comes calling There are two ways you can change the reduced example to prevent the ICE:
|
I think I suppose we could solve this issue just by replacing the lines with |
Hi, I'm using the nightly clippy but can still reproduce the issue, do I miss anything? struct Test {}
trait SomeTrait {
type Outer;
fn broken() -> Self::Outer;
}
struct Inner {}
impl SomeTrait for Inner {
type Outer = Test;
fn broken() -> Self::Outer {
Self::Outer{}
}
}
fn main() {}
|
Saw this while running clippy 5c6cd87 compiled with rustc
rustc 1.52.0-nightly (a8486b64b 2021-02-24)
in thealacritty
git repo:Error output
Backtrace
Made the issue so hopefully people see this and we don't get bombarded with "clippy crashes on my project" tickets in the upcomming days. 😅
I'm not sure yet if we can reproduce the ice with pure rustc or if it is bound to clippy somehow.
Looks like the
default_numeric_fallback
lint is involved:35: 0x562d8b65e3bd - <clippy_lints::default_numeric_fallback::NumericFallbackVisitor as rustc_hir::intravisit::Visitor>::visit_expr::h32f67de45e3d4b1e at /home/matthias/vcs/github/rust-clippy/clippy_lints/src/default_numeric_fallback.rs:178:9
This is reproducible in rustc master now and will hit nightly
2021-02-25
The text was updated successfully, but these errors were encountered: