1
1
// Error messages for EXXXX errors.
2
- // Each message should start and end with a new line, and be wrapped to 80 characters.
3
- // In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.
4
- register_long_diagnostics ! {
2
+ // Each message should start and end with a new line, and be wrapped to 80
3
+ // characters. In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use
4
+ // `:set tw=0` to disable.
5
+ syntax:: register_diagnostics! {
5
6
E0038 : r##"
6
7
Trait objects like `Box<Trait>` can only be constructed when certain
7
8
requirements are satisfied by the trait in question.
@@ -2183,11 +2184,7 @@ Examples of erroneous code:
2183
2184
static X: u32 = 42;
2184
2185
```
2185
2186
"## ,
2186
-
2187
- }
2188
-
2189
-
2190
- register_diagnostics ! {
2187
+ ;
2191
2188
// E0006, // merged with E0005
2192
2189
// E0101, // replaced with E0282
2193
2190
// E0102, // replaced with E0282
@@ -2206,7 +2203,8 @@ register_diagnostics! {
2206
2203
// E0305, // expected constant
2207
2204
E0311 , // thing may not live long enough
2208
2205
E0312 , // lifetime of reference outlives lifetime of borrowed content
2209
- E0313 , // lifetime of borrowed pointer outlives lifetime of captured variable
2206
+ E0313 , // lifetime of borrowed pointer outlives lifetime of captured
2207
+ // variable
2210
2208
E0314 , // closure outlives stack frame
2211
2209
E0315 , // cannot invoke closure outside of its lifetime
2212
2210
E0316 , // nested quantification of lifetimes
@@ -2223,12 +2221,13 @@ register_diagnostics! {
2223
2221
E0483 , // lifetime of operand does not outlive the operation
2224
2222
E0484 , // reference is not valid at the time of borrow
2225
2223
E0485 , // automatically reference is not valid at the time of borrow
2226
- E0486 , // type of expression contains references that are not valid during...
2224
+ E0486 , // type of expression contains references that are not valid during..
2227
2225
E0487 , // unsafe use of destructor: destructor might be called while...
2228
2226
E0488 , // lifetime of variable does not enclose its declaration
2229
2227
E0489 , // type/lifetime parameter not in scope here
2230
2228
E0490 , // a value of type `..` is borrowed for too long
2231
- E0495 , // cannot infer an appropriate lifetime due to conflicting requirements
2229
+ E0495 , // cannot infer an appropriate lifetime due to conflicting
2230
+ // requirements
2232
2231
E0566 , // conflicting representation hints
2233
2232
E0623 , // lifetime mismatch where both parameters are anonymous regions
2234
2233
E0628 , // generators cannot have explicit parameters
@@ -2239,7 +2238,8 @@ register_diagnostics! {
2239
2238
E0688 , // in-band lifetimes cannot be mixed with explicit lifetime binders
2240
2239
E0697 , // closures cannot be static
2241
2240
E0707 , // multiple elided lifetimes used in arguments of `async fn`
2242
- E0708 , // `async` non-`move` closures with parameters are not currently supported
2241
+ E0708 , // `async` non-`move` closures with parameters are not currently
2242
+ // supported
2243
2243
E0709 , // multiple different lifetimes used in arguments of `async fn`
2244
2244
E0710 , // an unknown tool name found in scoped lint
2245
2245
E0711 , // a feature has been declared with conflicting stability attributes
0 commit comments