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.
@@ -2206,7 +2207,8 @@ register_diagnostics! {
2206
2207
// E0305, // expected constant
2207
2208
E0311 , // thing may not live long enough
2208
2209
E0312 , // lifetime of reference outlives lifetime of borrowed content
2209
- E0313 , // lifetime of borrowed pointer outlives lifetime of captured variable
2210
+ E0313 , // lifetime of borrowed pointer outlives lifetime of captured
2211
+ // variable
2210
2212
E0314 , // closure outlives stack frame
2211
2213
E0315 , // cannot invoke closure outside of its lifetime
2212
2214
E0316 , // nested quantification of lifetimes
@@ -2223,12 +2225,13 @@ register_diagnostics! {
2223
2225
E0483 , // lifetime of operand does not outlive the operation
2224
2226
E0484 , // reference is not valid at the time of borrow
2225
2227
E0485 , // automatically reference is not valid at the time of borrow
2226
- E0486 , // type of expression contains references that are not valid during...
2228
+ E0486 , // type of expression contains references that are not valid during..
2227
2229
E0487 , // unsafe use of destructor: destructor might be called while...
2228
2230
E0488 , // lifetime of variable does not enclose its declaration
2229
2231
E0489 , // type/lifetime parameter not in scope here
2230
2232
E0490 , // a value of type `..` is borrowed for too long
2231
- E0495 , // cannot infer an appropriate lifetime due to conflicting requirements
2233
+ E0495 , // cannot infer an appropriate lifetime due to conflicting
2234
+ // requirements
2232
2235
E0566 , // conflicting representation hints
2233
2236
E0623 , // lifetime mismatch where both parameters are anonymous regions
2234
2237
E0628 , // generators cannot have explicit parameters
@@ -2239,7 +2242,8 @@ register_diagnostics! {
2239
2242
E0688 , // in-band lifetimes cannot be mixed with explicit lifetime binders
2240
2243
E0697 , // closures cannot be static
2241
2244
E0707 , // multiple elided lifetimes used in arguments of `async fn`
2242
- E0708 , // `async` non-`move` closures with parameters are not currently supported
2245
+ E0708 , // `async` non-`move` closures with parameters are not currently
2246
+ // supported
2243
2247
E0709 , // multiple different lifetimes used in arguments of `async fn`
2244
2248
E0710 , // an unknown tool name found in scoped lint
2245
2249
E0711 , // a feature has been declared with conflicting stability attributes
0 commit comments