-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: range end index 1 out of range for slice of length 0
#121613
Comments
Regression in nightly-2022-06-04 commit[0] 2022-06-02: Auto merge of #97575 - nnethercote:lazify-SourceFile-lines, r=Mark-Simulacrum |
It appears I'm hitting this one as well. Tacking this on for good measure.
|
Looks like it was originally introduced here in this commit by @lcnr (and was renamed later to I'd PR a fix but I'm not entirely sure how it's supposed to work. Is this masking a deeper bug or can one simply do something like: -let own = &substs[self.parent_count..][..self.params.len()];
+let own = &substs[self.parent_count..];
+let own = &own[..self.params.len().min(own.len())]; Derp, missed there was a PR. #128337 indeed fixes this on my end. Thanks @bvanjoi for the quick fix on this! |
Rollup merge of rust-lang#128337 - bvanjoi:issue-121613, r=compiler-errors skip assoc type during infer source visitor Fixes rust-lang#121613 Due to the generic arguments being lost during normalization, the associated type cannot retrieve the correct generics information, so this PR follows this [comment](https://github.com/rust-lang/rust/blob/master/compiler/rustc_trait_selection/src/error_reporting/infer/need_type_info.rs#L937-L942) and skips `DefKind::AssocTy` r? `@lcnr`
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: