-
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: assertion failed: (left == right)
in type_of.rs
#62658
Comments
Can you try to isolate the code, e.g. produce some code (not longer than 50 lines) that reproduces this issue? |
I have no idea where to even start. Maybe a |
How big is the code? You could start by removing 'mod xxx' in your main.rs. Remove types that are not needed. Then if you only have a few files left, merge them into one and remove more things (e.g. not needed functions, structs, enums), try to replace macros with their actual content. |
i'm hitting this too, will see if i can make a small repro. building for |
My project doesn't build for ARM even with
|
My bisect indicates the regression was introduced in 848e0a2. Armed with this clue I'm trying to figure out which part of my (giant) project is triggering it in order to make a repro. |
I've narrowed down the block of code that triggers the regression, and simplified it to the extent possible, but when extracted from the project it no longer causes rustc to panic. In case it's useful: let line: Bytes = ...;
match inner.current_state {
_ if line.starts_with(b"+CUSD: ") => {
let mut remainder = Cursor::new(&line[9..]);
let mut ussd_bytes: Vec<u8> = Vec::new();
remainder.read_until(0x2c, &mut ussd_bytes)?; // <-----
inner.handle_ussd().await?;
},
// ...
} If the line with the arrow is commented out, the code compiles. Uncommented, it fails with:
Will update if I have any success producing a standalone reproduction. |
OK, I managed to extract a standalone reproduction: |
I added a comment in the repo; you can make it build or fail to build by just reversing the order of two lines of code. |
I updated the repo by folding a minimised implementation of |
@rustbot claim |
Thanks for reporting this! Fix should be landing soon. |
Round generator sizes to a multiple of their alignment Fixes rust-lang#62658. r? @cramertj cc @eddyb
I just ran into this ICE:
https://github.com/rust-lang/rust/blob/master/src/librustc_codegen_llvm/type_of.rs#L148
I can't share the code but here are some observations:
cargo check
.The text was updated successfully, but these errors were encountered: