about summary refs log tree commit diff
path: root/tests/ui/deprecation/deprecation-sanity.stderr
blob: 856f51a4b249eab03f3e97fddea3789216256bde (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
error[E0541]: unknown meta item 'reason'
  --> $DIR/deprecation-sanity.rs:4:43
   |
LL |     #[deprecated(since = "a", note = "a", reason)]
   |                                           ^^^^^^ expected one of `since`, `note`

error[E0539]: malformed `deprecated` attribute input
  --> $DIR/deprecation-sanity.rs:7:5
   |
LL |     #[deprecated(since = "a", note)]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^----^^
   |                               |
   |                               expected this to be of the form `note = "..."`
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL -     #[deprecated(since = "a", note)]
LL +     #[deprecated = "reason"]
   |
LL -     #[deprecated(since = "a", note)]
LL +     #[deprecated(note = "reason")]
   |
LL -     #[deprecated(since = "a", note)]
LL +     #[deprecated(since = "version")]
   |
LL -     #[deprecated(since = "a", note)]
LL +     #[deprecated(since = "version", note = "reason")]
   |
   = and 1 other candidate

error[E0539]: malformed `deprecated` attribute input
  --> $DIR/deprecation-sanity.rs:10:5
   |
LL |     #[deprecated(since, note = "a")]
   |     ^^^^^^^^^^^^^-----^^^^^^^^^^^^^^
   |                  |
   |                  expected this to be of the form `since = "..."`
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL -     #[deprecated(since, note = "a")]
LL +     #[deprecated = "reason"]
   |
LL -     #[deprecated(since, note = "a")]
LL +     #[deprecated(note = "reason")]
   |
LL -     #[deprecated(since, note = "a")]
LL +     #[deprecated(since = "version")]
   |
LL -     #[deprecated(since, note = "a")]
LL +     #[deprecated(since = "version", note = "reason")]
   |
   = and 1 other candidate

error[E0539]: malformed `deprecated` attribute input
  --> $DIR/deprecation-sanity.rs:13:5
   |
LL |     #[deprecated(since = "a", note(b))]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^-------^^
   |                               |
   |                               expected this to be of the form `note = "..."`
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL -     #[deprecated(since = "a", note(b))]
LL +     #[deprecated = "reason"]
   |
LL -     #[deprecated(since = "a", note(b))]
LL +     #[deprecated(note = "reason")]
   |
LL -     #[deprecated(since = "a", note(b))]
LL +     #[deprecated(since = "version")]
   |
LL -     #[deprecated(since = "a", note(b))]
LL +     #[deprecated(since = "version", note = "reason")]
   |
   = and 1 other candidate

error[E0539]: malformed `deprecated` attribute input
  --> $DIR/deprecation-sanity.rs:16:5
   |
LL |     #[deprecated(since(b), note = "a")]
   |     ^^^^^^^^^^^^^--------^^^^^^^^^^^^^^
   |                  |
   |                  expected this to be of the form `since = "..."`
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL -     #[deprecated(since(b), note = "a")]
LL +     #[deprecated = "reason"]
   |
LL -     #[deprecated(since(b), note = "a")]
LL +     #[deprecated(note = "reason")]
   |
LL -     #[deprecated(since(b), note = "a")]
LL +     #[deprecated(since = "version")]
   |
LL -     #[deprecated(since(b), note = "a")]
LL +     #[deprecated(since = "version", note = "reason")]
   |
   = and 1 other candidate

error[E0539]: malformed `deprecated` attribute input
  --> $DIR/deprecation-sanity.rs:19:5
   |
LL |     #[deprecated(note = b"test")]
   |     ^^^^^^^^^^^^^^^^^^^^-^^^^^^^^
   |                         |
   |                         help: consider removing the prefix
   |
   = note: expected a normal string literal, not a byte string literal

error[E0565]: malformed `deprecated` attribute input
  --> $DIR/deprecation-sanity.rs:22:5
   |
LL |     #[deprecated("test")]
   |     ^^^^^^^^^^^^^------^^
   |                  |
   |                  didn't expect a literal here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL -     #[deprecated("test")]
LL +     #[deprecated = "reason"]
   |
LL -     #[deprecated("test")]
LL +     #[deprecated(note = "reason")]
   |
LL -     #[deprecated("test")]
LL +     #[deprecated(since = "version")]
   |
LL -     #[deprecated("test")]
LL +     #[deprecated(since = "version", note = "reason")]
   |
   = and 1 other candidate

error: multiple `deprecated` attributes
  --> $DIR/deprecation-sanity.rs:27:1
   |
LL | #[deprecated(since = "a", note = "b")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> $DIR/deprecation-sanity.rs:26:1
   |
LL | #[deprecated(since = "a", note = "b")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0538]: malformed `deprecated` attribute input
  --> $DIR/deprecation-sanity.rs:30:1
   |
LL | #[deprecated(since = "a", since = "b", note = "c")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^-----------^^^^^^^^^^^^^^
   |                           |
   |                           found `since` used as a key more than once
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[deprecated(since = "a", since = "b", note = "c")]
LL + #[deprecated = "reason"]
   |
LL - #[deprecated(since = "a", since = "b", note = "c")]
LL + #[deprecated(note = "reason")]
   |
LL - #[deprecated(since = "a", since = "b", note = "c")]
LL + #[deprecated(since = "version")]
   |
LL - #[deprecated(since = "a", since = "b", note = "c")]
LL + #[deprecated(since = "version", note = "reason")]
   |
   = and 1 other candidate

error: this `#[deprecated]` annotation has no effect
  --> $DIR/deprecation-sanity.rs:35:1
   |
LL | #[deprecated = "hello"]
   | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
   |
   = note: `#[deny(useless_deprecated)]` on by default

error: aborting due to 10 previous errors

Some errors have detailed explanations: E0538, E0539, E0541, E0565.
For more information about an error, try `rustc --explain E0538`.