Skip to content

Commit 93a7b06

Browse files
Rollup merge of rust-lang#136938 - mustartt:fix-stack-protector-filecheck, r=workingjubilee
Remove `:` from `stack-protector-heuristics-effect.rs` Filecheck Pattern With function sections, the assembly label does not necessarily end in `:`. Remove trailing `:` to be more consistent with the rest of the existing Filecheck patterns. ``` // CHECK-LABEL: local_string_addr_taken #[no_mangle] pub fn local_string_addr_taken(f: fn(&String)) { let x = String::new(); f(&x); ```
2 parents fc45dde + 142d107 commit 93a7b06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/assembly/stack-protector/stack-protector-heuristics-effect.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#![allow(incomplete_features)]
2020
#![feature(unsized_locals, unsized_fn_params)]
2121

22-
// CHECK-LABEL: emptyfn:
22+
// CHECK-LABEL: emptyfn
2323
#[no_mangle]
2424
pub fn emptyfn() {
2525
// all: __stack_chk_fail
@@ -63,7 +63,7 @@ pub fn array_u8_1(f: fn(*const u8)) {
6363
// missing-NOT: __stack_chk_fail
6464
}
6565

66-
// CHECK-LABEL: array_u8_small:
66+
// CHECK-LABEL: array_u8_small
6767
#[no_mangle]
6868
pub fn array_u8_small(f: fn(*const u8)) {
6969
let a = [0u8; 2];
@@ -80,7 +80,7 @@ pub fn array_u8_small(f: fn(*const u8)) {
8080
// missing-NOT: __stack_chk_fail
8181
}
8282

83-
// CHECK-LABEL: array_u8_large:
83+
// CHECK-LABEL: array_u8_large
8484
#[no_mangle]
8585
pub fn array_u8_large(f: fn(*const u8)) {
8686
let a = [0u8; 9];
@@ -99,7 +99,7 @@ pub fn array_u8_large(f: fn(*const u8)) {
9999
#[derive(Copy, Clone)]
100100
pub struct ByteSizedNewtype(u8);
101101

102-
// CHECK-LABEL: array_bytesizednewtype_9:
102+
// CHECK-LABEL: array_bytesizednewtype_9
103103
#[no_mangle]
104104
pub fn array_bytesizednewtype_9(f: fn(*const ByteSizedNewtype)) {
105105
let a = [ByteSizedNewtype(0); 9];

0 commit comments

Comments
 (0)