about summary refs log tree commit diff
path: root/tests/ui/sanitize-attr/invalid-sanitize.stderr
blob: ec0a93be1420eea0c7a65a512b050411338e446f (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
error[E0539]: malformed `sanitize` attribute input
  --> $DIR/invalid-sanitize.rs:3:1
   |
LL | #[sanitize(brontosaurus = "off")]
   | ^^^^^^^^^^^------------^^^^^^^^^^
   |            |
   |            valid arguments are "address", "cfi", "kcfi", "memory", "memtag", "shadow_call_stack", "thread" or "hwaddress"
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[sanitize(brontosaurus = "off")]
LL + #[sanitize(address = "on|off")]
   |
LL - #[sanitize(brontosaurus = "off")]
LL + #[sanitize(cfi = "on|off")]
   |
LL - #[sanitize(brontosaurus = "off")]
LL + #[sanitize(hwaddress = "on|off")]
   |
LL - #[sanitize(brontosaurus = "off")]
LL + #[sanitize(kcfi = "on|off")]
   |
   = and 5 other candidates

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

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

error[E0539]: malformed `sanitize` attribute input
  --> $DIR/invalid-sanitize.rs:14:1
   |
LL | #[sanitize(address = "bogus")]
   | ^^^^^^^^^^^^^^^^^^^^^-------^^
   |                      |
   |                      valid arguments are "on" or "off"
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[sanitize(address = "bogus")]
LL + #[sanitize(address = "on|off")]
   |
LL - #[sanitize(address = "bogus")]
LL + #[sanitize(cfi = "on|off")]
   |
LL - #[sanitize(address = "bogus")]
LL + #[sanitize(hwaddress = "on|off")]
   |
LL - #[sanitize(address = "bogus")]
LL + #[sanitize(kcfi = "on|off")]
   |
   = and 5 other candidates

error[E0539]: malformed `sanitize` attribute input
  --> $DIR/invalid-sanitize.rs:17:1
   |
LL | #[sanitize = "off"]
   | ^^^^^^^^^^^^^^^^^^^ expected this to be a list
   |
help: try changing it to one of the following valid forms of the attribute
   |
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[E0539]: malformed `sanitize` attribute input
  --> $DIR/invalid-sanitize.rs:20:1
   |
LL | #[sanitize]
   | ^^^^^^^^^^^ expected this to be a list
   |
help: try changing it to one of the following valid forms of the attribute
   |
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: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0539`.