11error[E0539]: malformed `sanitize` attribute input
2-   --> $DIR/invalid-sanitize.rs:3 :1
2+   --> $DIR/invalid-sanitize.rs:4 :1
33   |
44LL | #[sanitize(brontosaurus = "off")]
55   | ^^^^^^^^^^^------------^^^^^^^^^^
@@ -23,31 +23,31 @@ LL + #[sanitize(kcfi = "on|off")]
2323   = and 6 other candidates
2424
2525error: multiple `sanitize` attributes
26-   --> $DIR/invalid-sanitize.rs:6 :1
26+   --> $DIR/invalid-sanitize.rs:7 :1
2727   |
2828LL | #[sanitize(address = "off")]
2929   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
3030   |
3131note: attribute also specified here
32-   --> $DIR/invalid-sanitize.rs:7 :1
32+   --> $DIR/invalid-sanitize.rs:8 :1
3333   |
3434LL | #[sanitize(address = "off")]
3535   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3636
3737error: multiple `sanitize` attributes
38-   --> $DIR/invalid-sanitize.rs:10 :1
38+   --> $DIR/invalid-sanitize.rs:11 :1
3939   |
4040LL | #[sanitize(address = "on")]
4141   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
4242   |
4343note: attribute also specified here
44-   --> $DIR/invalid-sanitize.rs:11 :1
44+   --> $DIR/invalid-sanitize.rs:12 :1
4545   |
4646LL | #[sanitize(address = "off")]
4747   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4848
4949error[E0539]: malformed `sanitize` attribute input
50-   --> $DIR/invalid-sanitize.rs:14 :1
50+   --> $DIR/invalid-sanitize.rs:15 :1
5151   |
5252LL | #[sanitize(address = "bogus")]
5353   | ^^^^^^^^^^^^^^^^^^^^^-------^^
@@ -71,7 +71,7 @@ LL + #[sanitize(kcfi = "on|off")]
7171   = and 6 other candidates
7272
7373error[E0539]: malformed `sanitize` attribute input
74-   --> $DIR/invalid-sanitize.rs:17 :1
74+   --> $DIR/invalid-sanitize.rs:18 :1
7575   |
7676LL | #[sanitize = "off"]
7777   | ^^^^^^^^^^^^^^^^^^^ expected this to be a list
@@ -93,7 +93,7 @@ LL + #[sanitize(kcfi = "on|off")]
9393   = and 6 other candidates
9494
9595error[E0539]: malformed `sanitize` attribute input
96-   --> $DIR/invalid-sanitize.rs:20 :1
96+   --> $DIR/invalid-sanitize.rs:21 :1
9797   |
9898LL | #[sanitize]
9999   | ^^^^^^^^^^^ expected this to be a list
@@ -111,7 +111,7 @@ LL | #[sanitize(kcfi = "on|off")]
111111   = and 6 other candidates
112112
113113error[E0539]: malformed `sanitize` attribute input
114-   --> $DIR/invalid-sanitize.rs:23 :1
114+   --> $DIR/invalid-sanitize.rs:24 :1
115115   |
116116LL | #[sanitize(realtime = "on")]
117117   | ^^^^^^^^^^^^^^^^^^^^^^----^^
@@ -134,6 +134,14 @@ LL + #[sanitize(kcfi = "on|off")]
134134   |
135135   = and 6 other candidates
136136
137- error: aborting due to 7 previous errors
137+ warning: the async executor can run blocking code, without realtime sanitizer catching it
138+   --> $DIR/invalid-sanitize.rs:27:1
139+    |
140+ LL | #[sanitize(realtime = "nonblocking")]
141+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142+    |
143+    = note: `#[warn(rtsan_nonblocking_async)]` on by default
144+ 
145+ error: aborting due to 7 previous errors; 1 warning emitted
138146
139147For more information about this error, try `rustc --explain E0539`.
0 commit comments