2024-07-08 15:49:50 +02:00
|
|
|
error: `#[no_sanitize(memory)]` should be applied to a function
|
|
|
|
--> $DIR/no-sanitize.rs:7:19
|
2024-08-05 19:07:32 +09:00
|
|
|
|
|
|
|
|
LL | #[no_sanitize(memory)]
|
2024-07-08 15:49:50 +02:00
|
|
|
| ^^^^^^
|
2024-08-05 19:07:32 +09:00
|
|
|
LL | / {
|
|
|
|
LL | | 1
|
|
|
|
LL | | };
|
2024-07-08 15:49:50 +02:00
|
|
|
| |_____- not a function
|
2024-08-05 19:07:32 +09:00
|
|
|
|
2024-07-08 15:49:50 +02:00
|
|
|
error: `#[no_sanitize(memory)]` should be applied to a function
|
|
|
|
--> $DIR/no-sanitize.rs:13:15
|
2024-08-05 19:07:32 +09:00
|
|
|
|
|
|
|
|
LL | #[no_sanitize(memory)]
|
2024-07-08 15:49:50 +02:00
|
|
|
| ^^^^^^
|
2024-08-05 19:07:32 +09:00
|
|
|
LL | type InvalidTy = ();
|
2024-07-08 15:49:50 +02:00
|
|
|
| -------------------- not a function
|
2024-08-05 19:07:32 +09:00
|
|
|
|
2024-07-08 15:49:50 +02:00
|
|
|
error: `#[no_sanitize(memory)]` should be applied to a function
|
|
|
|
--> $DIR/no-sanitize.rs:16:15
|
2024-08-05 19:07:32 +09:00
|
|
|
|
|
|
|
|
LL | #[no_sanitize(memory)]
|
2024-07-08 15:49:50 +02:00
|
|
|
| ^^^^^^
|
2024-08-05 19:07:32 +09:00
|
|
|
LL | mod invalid_module {}
|
2024-07-08 15:49:50 +02:00
|
|
|
| --------------------- not a function
|
2024-08-05 19:07:32 +09:00
|
|
|
|
2024-07-08 15:49:50 +02:00
|
|
|
error: `#[no_sanitize(memory)]` should be applied to a function
|
|
|
|
--> $DIR/no-sanitize.rs:20:27
|
2024-08-05 19:07:32 +09:00
|
|
|
|
|
|
|
|
LL | let _ = #[no_sanitize(memory)]
|
2024-07-08 15:49:50 +02:00
|
|
|
| ^^^^^^
|
2024-08-05 19:07:32 +09:00
|
|
|
LL | (|| 1);
|
2024-07-08 15:49:50 +02:00
|
|
|
| ------ not a function
|
2024-08-05 19:07:32 +09:00
|
|
|
|
2024-07-08 15:49:50 +02:00
|
|
|
error: `#[no_sanitize(memory)]` should be applied to a function
|
|
|
|
--> $DIR/no-sanitize.rs:24:15
|
2024-08-05 19:07:32 +09:00
|
|
|
|
|
|
|
|
LL | #[no_sanitize(memory)]
|
2024-07-08 15:49:50 +02:00
|
|
|
| ^^^^^^
|
2024-08-05 19:07:32 +09:00
|
|
|
LL | struct F;
|
2024-07-08 15:49:50 +02:00
|
|
|
| --------- not a function
|
2024-08-05 19:07:32 +09:00
|
|
|
|
2024-07-08 15:49:50 +02:00
|
|
|
error: `#[no_sanitize(memory)]` should be applied to a function
|
|
|
|
--> $DIR/no-sanitize.rs:27:15
|
2024-08-05 19:07:32 +09:00
|
|
|
|
|
|
|
|
LL | #[no_sanitize(memory)]
|
2024-07-08 15:49:50 +02:00
|
|
|
| ^^^^^^
|
2024-08-05 19:07:32 +09:00
|
|
|
LL | / impl F {
|
|
|
|
LL | | #[no_sanitize(memory)]
|
|
|
|
LL | | fn valid(&self) {}
|
|
|
|
LL | | }
|
2024-07-08 15:49:50 +02:00
|
|
|
| |_- not a function
|
2024-08-05 19:07:32 +09:00
|
|
|
|
2024-07-08 15:49:50 +02:00
|
|
|
error: `#[no_sanitize(memory)]` should be applied to a function
|
|
|
|
--> $DIR/no-sanitize.rs:33:24
|
|
|
|
|
|
|
|
|
LL | #[no_sanitize(address, memory)]
|
|
|
|
| ^^^^^^
|
|
|
|
LL | static INVALID : i32 = 0;
|
|
|
|
| ------------------------- not a function
|
|
|
|
|
2025-04-10 14:33:59 +10:00
|
|
|
error: `#[no_sanitize(...)]` should be applied to a function
|
2025-04-10 13:47:35 +10:00
|
|
|
--> $DIR/no-sanitize.rs:42:15
|
|
|
|
|
|
|
|
|
LL | #[no_sanitize("address")]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | static VALID2 : i32 = 0;
|
|
|
|
| ------------------------ not a function
|
|
|
|
|
|
|
|
error: invalid argument for `no_sanitize`
|
|
|
|
--> $DIR/no-sanitize.rs:42:15
|
|
|
|
|
|
|
|
|
LL | #[no_sanitize("address")]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: expected one of: `address`, `cfi`, `hwaddress`, `kcfi`, `memory`, `memtag`, `shadow-call-stack`, or `thread`
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2024-08-05 19:07:32 +09:00
|
|
|
|