11// 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! {
56E0038 : r##"
67Trait objects like `Box<Trait>` can only be constructed when certain
78requirements are satisfied by the trait in question.
@@ -2183,11 +2184,7 @@ Examples of erroneous code:
21832184static X: u32 = 42;
21842185```
21852186"## ,
2186-
2187- }
2188-
2189-
2190- register_diagnostics ! {
2187+ ;
21912188// E0006, // merged with E0005
21922189// E0101, // replaced with E0282
21932190// E0102, // replaced with E0282
@@ -2206,7 +2203,8 @@ register_diagnostics! {
22062203// E0305, // expected constant
22072204 E0311 , // thing may not live long enough
22082205 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
22102208 E0314 , // closure outlives stack frame
22112209 E0315 , // cannot invoke closure outside of its lifetime
22122210 E0316 , // nested quantification of lifetimes
@@ -2223,12 +2221,13 @@ register_diagnostics! {
22232221 E0483 , // lifetime of operand does not outlive the operation
22242222 E0484 , // reference is not valid at the time of borrow
22252223 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..
22272225 E0487 , // unsafe use of destructor: destructor might be called while...
22282226 E0488 , // lifetime of variable does not enclose its declaration
22292227 E0489 , // type/lifetime parameter not in scope here
22302228 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
22322231 E0566 , // conflicting representation hints
22332232 E0623 , // lifetime mismatch where both parameters are anonymous regions
22342233 E0628 , // generators cannot have explicit parameters
@@ -2239,7 +2238,8 @@ register_diagnostics! {
22392238 E0688 , // in-band lifetimes cannot be mixed with explicit lifetime binders
22402239 E0697 , // closures cannot be static
22412240 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
22432243 E0709 , // multiple different lifetimes used in arguments of `async fn`
22442244 E0710 , // an unknown tool name found in scoped lint
22452245 E0711 , // a feature has been declared with conflicting stability attributes
0 commit comments