Include rustc version in ICE messages
Rather than only including them in the ICE file. Not every user includes the ICE file in their bug reports, nor do they always list the rustc version.
This commit is contained in:
parent
efa32de15b
commit
13c6256efe
1 changed files with 2 additions and 2 deletions
|
|
@ -1531,15 +1531,15 @@ fn report_ice(
|
|||
.map(PathBuf::from)
|
||||
.map(|env_var| session_diagnostics::IcePathErrorEnv { env_var }),
|
||||
});
|
||||
dcx.emit_note(session_diagnostics::IceVersion { version, triple: tuple });
|
||||
None
|
||||
}
|
||||
}
|
||||
} else {
|
||||
dcx.emit_note(session_diagnostics::IceVersion { version, triple: tuple });
|
||||
None
|
||||
};
|
||||
|
||||
dcx.emit_note(session_diagnostics::IceVersion { version, triple: tuple });
|
||||
|
||||
if let Some((flags, excluded_cargo_defaults)) = rustc_session::utils::extra_compiler_flags() {
|
||||
dcx.emit_note(session_diagnostics::IceFlags { flags: flags.join(" ") });
|
||||
if excluded_cargo_defaults {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue