-
Notifications
You must be signed in to change notification settings - Fork 13.4k
thread 'rustc' panicked at 'assertion failed: !self.substitutions.is_empty()', compiler/rustc_errors/src/lib.rs:189:9 #83309
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
FYI, with szunami/staircases@a0dfe83 this code compiled. |
Minimized: fn main() {
for v in Query.iter_mut() {
*v -= 1;
}
}
pub struct Query;
pub struct QueryIter<'a>(&'a i32);
impl Query {
pub fn iter_mut<'a>(&'a mut self) -> QueryIter<'a> {
todo!();
}
}
impl<'a> Iterator for QueryIter<'a> {
type Item = &'a i32;
fn next(&mut self) -> Option<Self::Item> {
todo!();
}
} Similar error was reported in #83292. The issue is in code that attempts to suggest a different method, that might potentially return rust/compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs Lines 627 to 656 in 41b315a
@rustbot label: +E-easy |
@rustbot claim |
Issue: rust-lang/rust#83309
@rustbot label +regression-from-stable-to-beta |
Assigning priority as discussed as part of the Prioritization Working Group procedure and removing @rustbot label -I-prioritize +P-medium |
Uh oh!
There was an error while loading. Please reload this page.
Code that generated this error is available here:
szunami/staircases@cc74cec
I am happy to spend some time trying to create a smaller repro but it will take me a few days. This error is reproducible on my machine.
The text was updated successfully, but these errors were encountered: