|
1 | | -error: attribute should be applied to a function definition |
2 | | - --> $DIR/no-sanitize.rs:7:5 |
| 1 | +error: `#[no_sanitize(memory)]` should be applied to a function |
| 2 | + --> $DIR/no-sanitize.rs:7:19 |
3 | 3 | | |
4 | 4 | LL | #[no_sanitize(memory)] |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
| 5 | + | ^^^^^^ |
6 | 6 | LL | / { |
7 | 7 | LL | | 1 |
8 | 8 | LL | | }; |
9 | | - | |_____- not a function definition |
| 9 | + | |_____- not a function |
10 | 10 |
|
11 | | -error: attribute should be applied to a function definition |
12 | | - --> $DIR/no-sanitize.rs:13:1 |
| 11 | +error: `#[no_sanitize(memory)]` should be applied to a function |
| 12 | + --> $DIR/no-sanitize.rs:13:15 |
13 | 13 | | |
14 | 14 | LL | #[no_sanitize(memory)] |
15 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
| 15 | + | ^^^^^^ |
16 | 16 | LL | type InvalidTy = (); |
17 | | - | -------------------- not a function definition |
| 17 | + | -------------------- not a function |
18 | 18 |
|
19 | | -error: attribute should be applied to a function definition |
20 | | - --> $DIR/no-sanitize.rs:16:1 |
| 19 | +error: `#[no_sanitize(memory)]` should be applied to a function |
| 20 | + --> $DIR/no-sanitize.rs:16:15 |
21 | 21 | | |
22 | 22 | LL | #[no_sanitize(memory)] |
23 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
| 23 | + | ^^^^^^ |
24 | 24 | LL | mod invalid_module {} |
25 | | - | --------------------- not a function definition |
| 25 | + | --------------------- not a function |
26 | 26 |
|
27 | | -error: attribute should be applied to a function definition |
28 | | - --> $DIR/no-sanitize.rs:20:13 |
| 27 | +error: `#[no_sanitize(memory)]` should be applied to a function |
| 28 | + --> $DIR/no-sanitize.rs:20:27 |
29 | 29 | | |
30 | 30 | LL | let _ = #[no_sanitize(memory)] |
31 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
| 31 | + | ^^^^^^ |
32 | 32 | LL | (|| 1); |
33 | | - | ------ not a function definition |
| 33 | + | ------ not a function |
34 | 34 |
|
35 | | -error: attribute should be applied to a function definition |
36 | | - --> $DIR/no-sanitize.rs:24:1 |
| 35 | +error: `#[no_sanitize(memory)]` should be applied to a function |
| 36 | + --> $DIR/no-sanitize.rs:24:15 |
37 | 37 | | |
38 | 38 | LL | #[no_sanitize(memory)] |
39 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
| 39 | + | ^^^^^^ |
40 | 40 | LL | struct F; |
41 | | - | --------- not a function definition |
| 41 | + | --------- not a function |
42 | 42 |
|
43 | | -error: attribute should be applied to a function definition |
44 | | - --> $DIR/no-sanitize.rs:27:1 |
| 43 | +error: `#[no_sanitize(memory)]` should be applied to a function |
| 44 | + --> $DIR/no-sanitize.rs:27:15 |
45 | 45 | | |
46 | 46 | LL | #[no_sanitize(memory)] |
47 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
| 47 | + | ^^^^^^ |
48 | 48 | LL | / impl F { |
49 | 49 | LL | | #[no_sanitize(memory)] |
50 | 50 | LL | | fn valid(&self) {} |
51 | 51 | LL | | } |
52 | | - | |_- not a function definition |
| 52 | + | |_- not a function |
53 | 53 |
|
54 | | -error: aborting due to 6 previous errors |
| 54 | +error: `#[no_sanitize(memory)]` should be applied to a function |
| 55 | + --> $DIR/no-sanitize.rs:33:24 |
| 56 | + | |
| 57 | +LL | #[no_sanitize(address, memory)] |
| 58 | + | ^^^^^^ |
| 59 | +LL | static INVALID : i32 = 0; |
| 60 | + | ------------------------- not a function |
| 61 | + |
| 62 | +error: aborting due to 7 previous errors |
55 | 63 |
|
0 commit comments