-
Notifications
You must be signed in to change notification settings - Fork 13.4k
broken MIR in DefId(0:15 ~ nocore[d905]::{impl#0}::add) #92157
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
A "fix" for that code is to add |
The error comes from rust/compiler/rustc_borrowck/src/type_check/mod.rs Lines 575 to 590 in 8ad3c1d
#![no_core] hitting this case would be a genuine bug in rustc. Turning it from an ICE into a nice error would require special casing integer types to not ICE here. In general you should expect to see internal compiler errors when you mess up with #![no_core] . In some cases it is feasible to give nice errors but I think this is not such a case.
|
Thanks! You may close if you think there is nothing you can do. |
I am by no means familiar with the relevant code, but this would seem more like a basis for making this a |
Triage: Fixed since nightly-2023-01-04, marking as |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#106072 (fix: misleading "add dyn keyword before derive macro" suggestion) - rust-lang#106859 (Suggestion for type mismatch when we need a u8 but the programmer wrote a char literal) - rust-lang#106863 (Remove various double spaces in compiler source comments.) - rust-lang#106865 (Add explanation comment for GUI test) - rust-lang#106867 (Fix the stability attributes for `std::os::fd`.) - rust-lang#106878 (Add regression test for rust-lang#92157) - rust-lang#106879 (Add regression test for rust-lang#42114) - rust-lang#106880 (doc: fix typo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: