-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE when compiling SOLID #138047
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
Comments
SOLID doesn't allow executables:
rust/compiler/rustc_session/src/output.rs Lines 209 to 217 in ac951d3
return vec![CrateType::Executable]; earlier in this function.
|
The following patch, which I think is what you suggest, still produces the same ICE: diff --git a/compiler/rustc_session/src/output.rs b/compiler/rustc_session/src/output.rs
index b37a80274c0..27d257bf322 100644
--- a/compiler/rustc_session/src/output.rs
+++ b/compiler/rustc_session/src/output.rs
@@ -177,6 +177,13 @@ pub fn collect_crate_types(session: &Session, attrs: &[ast::Attribute]) -> Vec<C
// If we're generating a test executable, then ignore all other output
// styles at all other locations
if session.opts.test {
+ if !session.target.executables {
+ session.dcx().emit_warn(errors::UnsupportedCrateTypeForTarget {
+ crate_type: CrateType::Executable,
+ target_triple: &session.opts.target_triple,
+ });
+ return Vec::new();
+ }
return vec![CrateType::Executable];
} |
That is because |
Strange… |
I've opened #138906 to fix this. |
…r=bjorn3 Reject test executables when not supported by target Currently, compiling tests for SOLID produces an ICE, because SOLID does not support executables. See rust-lang#138047
…bjorn3 Reject test executables when not supported by target Currently, compiling tests for SOLID produces an ICE, because SOLID does not support executables. See rust-lang#138047
Reject test executables when not supported by target Currently, compiling tests for SOLID produces an ICE, because SOLID does not support executables. See rust-lang/rust#138047
Reject test executables when not supported by target Currently, compiling tests for SOLID produces an ICE, because SOLID does not support executables. See rust-lang/rust#138047
I get an ICE when doing
x check library
for the SOLID target on ac951d3 (currentlymaster
).cc @Noratrieb
The text was updated successfully, but these errors were encountered: