@@ -1924,7 +1924,7 @@ fn main() {
1924
1924
1925
1925
You cannot directly use a dereference operation whilst initializing a constant
1926
1926
or a static. To fix this error, restructure your code to avoid this dereference,
1927
- perharps moving it inline:
1927
+ perhaps moving it inline:
1928
1928
1929
1929
```
1930
1930
use std::ops::Deref;
@@ -1943,6 +1943,23 @@ fn main() {
1943
1943
```
1944
1944
"## ,
1945
1945
1946
+ E0452 : r##"
1947
+ An invalid lint attribute has been given. Erroneous code example:
1948
+
1949
+ ```
1950
+ #![allow(foo = "")] // error: malformed lint attribute
1951
+ ```
1952
+
1953
+ Lint attributes only accept a list of identifiers (where each identifier is a
1954
+ lint name). Ensure the attribute is of this form:
1955
+
1956
+ ```
1957
+ #![allow(foo)] // ok!
1958
+ // or:
1959
+ #![allow(foo, foo2)] // ok!
1960
+ ```
1961
+ "## ,
1962
+
1946
1963
E0492 : r##"
1947
1964
A borrow of a constant containing interior mutability was attempted. Erroneous
1948
1965
code example:
@@ -2219,7 +2236,6 @@ register_diagnostics! {
2219
2236
E0314 , // closure outlives stack frame
2220
2237
E0315 , // cannot invoke closure outside of its lifetime
2221
2238
E0316 , // nested quantification of lifetimes
2222
- E0452 , // malformed lint attribute
2223
2239
E0453 , // overruled by outer forbid
2224
2240
E0471 , // constant evaluation error: ..
2225
2241
E0472 , // asm! is unsupported on this target
0 commit comments