-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32 #92267
Comments
searched nightlies: from nightly-2021-01-01 to nightly-2021-12-24 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2021-1-1 --end=2021-12-24 --regress ice |
The regression happened in #89340. cc @FabianWolff. |
@rustbot label regression-from-stable-to-stable |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-low |
I've been taking a look at this. It's pretty interesting. I'm not entirely sure I'll be able to work it out, but I figure I may as well assign myself for the time being while I attempt to solve it. |
Another test case: fn f(){(print!(á |
I'm somewhat confused. Are you getting the same error from this? I'm having trouble reproducing. |
The problem seems to reside within the crate The first time this macro is called, for printf substitutions, it finds two (I think "%%" and "%", though I'm not sure it's exactly that). The code that actually detects the substitutions is in The remaining problem is figuring out what's going wrong in |
Something is broken about This change makes the ICE go away (but probably breaks other things):
|
When
it seems like we should increment self.pos by start + 2 , but we actually only increment it by 2:
|
@inquisitivecrystal yes, I get the exact same error. Playground. The error disappears if you add a new line after the |
That was it, thanks. I'm going to unassign myself from this. I do hope my exploration ends up being helpful to whoever fixes it though. @dwrensha: if you want to fix this yourself, you certainly seem further along than I was, though you shouldn't feel any pressure to do so if you don't want to. |
I put up a PR for a fix: #92460 |
rustc crashes on the following input, found by fuzz_rustc:
The text was updated successfully, but these errors were encountered: