about summary refs log tree commit diff
path: root/tests/ui/sanitize-attr/invalid-sanitize.stderr
blob: 4bf81770b89c0b46982612383fee26ffcd9f3c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
error: malformed `sanitize` attribute input
  --> $DIR/invalid-sanitize.rs:18:1
   |
LL | #[sanitize = "off"]
   | ^^^^^^^^^^^^^^^^^^^
   |
help: the following are the possible correct uses
   |
LL - #[sanitize = "off"]
LL + #[sanitize(address = "on|off")]
   |
LL - #[sanitize = "off"]
LL + #[sanitize(cfi = "on|off")]
   |
LL - #[sanitize = "off"]
LL + #[sanitize(hwaddress = "on|off")]
   |
LL - #[sanitize = "off"]
LL + #[sanitize(kcfi = "on|off")]
   |
   = and 5 other candidates

error: malformed `sanitize` attribute input
  --> $DIR/invalid-sanitize.rs:21:1
   |
LL | #[sanitize]
   | ^^^^^^^^^^^
   |
help: the following are the possible correct uses
   |
LL | #[sanitize(address = "on|off")]
   |           ++++++++++++++++++++
LL | #[sanitize(cfi = "on|off")]
   |           ++++++++++++++++
LL | #[sanitize(hwaddress = "on|off")]
   |           ++++++++++++++++++++++
LL | #[sanitize(kcfi = "on|off")]
   |           +++++++++++++++++
   = and 5 other candidates

error: multiple `sanitize` attributes
  --> $DIR/invalid-sanitize.rs:7:1
   |
LL | #[sanitize(address = "off")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> $DIR/invalid-sanitize.rs:8:1
   |
LL | #[sanitize(address = "off")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: multiple `sanitize` attributes
  --> $DIR/invalid-sanitize.rs:11:1
   |
LL | #[sanitize(address = "on")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> $DIR/invalid-sanitize.rs:12:1
   |
LL | #[sanitize(address = "off")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: invalid argument for `sanitize`
  --> $DIR/invalid-sanitize.rs:3:1
   |
LL | #[sanitize(brontosaurus = "off")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: expected one of: `address`, `kernel_address`, `cfi`, `hwaddress`, `kcfi`, `memory`, `memtag`, `shadow_call_stack`, or `thread`

error: invalid argument for `sanitize`
  --> $DIR/invalid-sanitize.rs:15:1
   |
LL | #[sanitize(address = "bogus")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: expected one of: `address`, `kernel_address`, `cfi`, `hwaddress`, `kcfi`, `memory`, `memtag`, `shadow_call_stack`, or `thread`

error: aborting due to 6 previous errors