mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
Add note mentioning the event log to LinkExeStatusStackBufferOverrun
This commit is contained in:
@@ -179,7 +179,8 @@ codegen_ssa_ld64_unimplemented_modifier = `as-needed` modifier not implemented y
|
||||
codegen_ssa_lib_def_write_failure = failed to write lib.def file: {$error}
|
||||
|
||||
codegen_ssa_link_exe_status_stack_buffer_overrun = 0xc0000409 is `STATUS_STACK_BUFFER_OVERRUN`
|
||||
.note = this may have been caused by a program abort and not a stack buffer overrun
|
||||
.abort_note = this may have been caused by a program abort and not a stack buffer overrun
|
||||
.event_log_note = consider checking the Application Event Log for Windows Error Reporting events to see the fail fast error code
|
||||
|
||||
codegen_ssa_link_exe_unexpected_error = `link.exe` returned an unexpected error
|
||||
|
||||
|
||||
@@ -550,11 +550,18 @@ enum ArgGroup {
|
||||
#[diag(codegen_ssa_link_exe_unexpected_error)]
|
||||
pub(crate) struct LinkExeUnexpectedError;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(codegen_ssa_link_exe_status_stack_buffer_overrun)]
|
||||
#[note]
|
||||
pub(crate) struct LinkExeStatusStackBufferOverrun;
|
||||
|
||||
impl<'a, G: EmissionGuarantee> Diagnostic<'a, G> for LinkExeStatusStackBufferOverrun {
|
||||
fn into_diag(self, dcx: rustc_errors::DiagCtxtHandle<'a>, level: Level) -> Diag<'a, G> {
|
||||
let mut diag =
|
||||
Diag::new(dcx, level, fluent::codegen_ssa_link_exe_status_stack_buffer_overrun);
|
||||
diag.note(fluent::codegen_ssa_abort_note);
|
||||
diag.note(fluent::codegen_ssa_event_log_note);
|
||||
diag
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(codegen_ssa_repair_vs_build_tools)]
|
||||
pub(crate) struct RepairVSBuildTools;
|
||||
|
||||
Reference in New Issue
Block a user