Fix error code numbers
This commit is contained in:
parent
4fe88c05cd
commit
8f1ef6e3be
4 changed files with 13 additions and 13 deletions
|
|
@ -2132,9 +2132,9 @@ register_diagnostics! {
|
|||
E0687, // in-band lifetimes cannot be used in `fn`/`Fn` syntax
|
||||
E0688, // in-band lifetimes cannot be mixed with explicit lifetime binders
|
||||
|
||||
E0906, // closures cannot be static
|
||||
E0697, // closures cannot be static
|
||||
|
||||
E0725, // multiple different lifetimes used in arguments of `async fn`
|
||||
E0726, // multiple elided lifetimes used in arguments of `async fn`
|
||||
E0727, // `async` non-`move` closures with arguments are not currently supported
|
||||
E0707, // multiple elided lifetimes used in arguments of `async fn`
|
||||
E0708, // `async` non-`move` closures with arguments are not currently supported
|
||||
E0709, // multiple different lifetimes used in arguments of `async fn`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2045,7 +2045,7 @@ impl<'a> LoweringContext<'a> {
|
|||
struct_span_err!(
|
||||
self.context.sess,
|
||||
current_lt_span.between(lifetime.span),
|
||||
E0725,
|
||||
E0709,
|
||||
"multiple different lifetimes used in arguments of `async fn`",
|
||||
)
|
||||
.span_label(current_lt_span, "first lifetime here")
|
||||
|
|
@ -2057,7 +2057,7 @@ impl<'a> LoweringContext<'a> {
|
|||
struct_span_err!(
|
||||
self.context.sess,
|
||||
current_lt_span.between(lifetime.span),
|
||||
E0726,
|
||||
E0707,
|
||||
"multiple elided lifetimes used in arguments of `async fn`",
|
||||
)
|
||||
.span_label(current_lt_span, "first lifetime here")
|
||||
|
|
@ -3551,7 +3551,7 @@ impl<'a> LoweringContext<'a> {
|
|||
struct_span_err!(
|
||||
this.sess,
|
||||
fn_decl_span,
|
||||
E0727,
|
||||
E0708,
|
||||
"`async` non-`move` closures with arguments \
|
||||
are not currently supported",
|
||||
)
|
||||
|
|
@ -3612,7 +3612,7 @@ impl<'a> LoweringContext<'a> {
|
|||
span_err!(
|
||||
this.sess,
|
||||
fn_decl_span,
|
||||
E0906,
|
||||
E0697,
|
||||
"closures cannot be static"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue