Skip to content

Commit c903640

Browse files
committed
Fix formatting
1 parent e53e99f commit c903640

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,6 @@ fn link_natively(
872872
// is not a Microsoft LNK error then suggest a way to fix or
873873
// install the Visual Studio build tools.
874874
if let Some(code) = prog.status.code() {
875-
876875
// 0xc0000409 (`STATUS_STACK_BUFFER_OVERRUN`) is also used by `abort()` via `__fastfail` on Windows. Not necessarily a buffer overrun.
877876
// See <https://devblogs.microsoft.com/oldnewthing/20190108-00/?p=100655>
878877
const STATUS_STACK_BUFFER_OVERRUN: i32 = 0xC0000409u32 as i32; // = -1073740791

tests/ui/linking/auxiliary/link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
// Dummy linker implementation simulating __fastfail termination
32
// See <https://devblogs.microsoft.com/oldnewthing/20190108-00/?p=100655>
43
fn main() {
54
const STATUS_STACK_BUFFER_OVERRUN: i32 = 0xC0000409u32 as i32;
65
std::process::exit(STATUS_STACK_BUFFER_OVERRUN);
7-
}
6+
}

tests/ui/linking/linker-fastfail-abort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
//~? NOTE 0xc0000409 is `STATUS_STACK_BUFFER_OVERRUN`
1717
//~? NOTE This may occur when using the MSVC toolchain on Windows and can be caused by `__fastfail` termination, rather than necessarily indicating a stack buffer overrun.
1818

19-
fn main() {}
19+
fn main() {}

0 commit comments

Comments
 (0)