-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: no_core #98010
Comments
This ICE is expected because there are certain assumptions the compiler makes about built-in types. In this case, it's that I think there's a general assumption that |
Then |
Contradicts #29639 (comment):
|
@eggyal, this summarizes my opinions on
And regardless, this is a duplicate of that issue #92495. |
Ah, thanks for that. I've quoted it over in the tracking issue too. |
@Zymlex Using |
I was interested in the possibility of creating a program without core. |
Minimized with Icemelter: #![no_core]
#![feature(no_core, lang_items)]
#[lang = "sized"]
trait Sync {}
#[lang = "copy"]
trait Freeze {}
extern "C" {
fn ExitProcess(uexitcode: u32) -> !;
}
fn exit_process(exit_code: u32) -> ! {
unsafe {
ExitProcess(exit_code);
}
} |
Fixed on the latest nightly, marking as E-needs-test (or, feel free to close if we have a sufficient regression test) |
glacier/fixed/98010.rs still ICEs for me So does langston's minimization (if I add Using rustc 1.75.0-nightly (fee5518 2023-11-05) on x86_64-apple-darwin ICE output
|
@jruderman: No need to test I'm gonna close this since this is an obvious misuse of compiler-internal machinery. |
Code
similar https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=7a195a8a96465739641bc5b737854d10
Cargo.toml:
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: