@@ -1948,7 +1948,7 @@ fn main() {
1948
1948
1949
1949
You cannot directly use a dereference operation whilst initializing a constant
1950
1950
or a static. To fix this error, restructure your code to avoid this dereference,
1951
- perharps moving it inline:
1951
+ perhaps moving it inline:
1952
1952
1953
1953
```
1954
1954
use std::ops::Deref;
@@ -1967,6 +1967,23 @@ fn main() {
1967
1967
```
1968
1968
"## ,
1969
1969
1970
+ E0452 : r##"
1971
+ An invalid lint attribute has been given. Erroneous code example:
1972
+
1973
+ ```
1974
+ #![allow(foo = "")] // error: malformed lint attribute
1975
+ ```
1976
+
1977
+ Lint attributes only accept a list of identifiers (where each identifier is a
1978
+ lint name). Ensure the attribute is of this form:
1979
+
1980
+ ```
1981
+ #![allow(foo)] // ok!
1982
+ // or:
1983
+ #![allow(foo, foo2)] // ok!
1984
+ ```
1985
+ "## ,
1986
+
1970
1987
E0492 : r##"
1971
1988
A borrow of a constant containing interior mutability was attempted. Erroneous
1972
1989
code example:
@@ -2242,7 +2259,6 @@ register_diagnostics! {
2242
2259
E0314 , // closure outlives stack frame
2243
2260
E0315 , // cannot invoke closure outside of its lifetime
2244
2261
E0316 , // nested quantification of lifetimes
2245
- E0452 , // malformed lint attribute
2246
2262
E0453 , // overruled by outer forbid
2247
2263
E0471 , // constant evaluation error: ..
2248
2264
E0472 , // asm! is unsupported on this target
0 commit comments