Changing error messages and renaming tests #63127
`async-await/no-args-non-move-async-closure` `generator/no-arguments-on-generators`
This commit is contained in:
parent
e0ce9f8c0a
commit
97319b2b95
6 changed files with 6 additions and 6 deletions
|
@ -2231,7 +2231,7 @@ register_diagnostics! {
|
|||
E0495, // cannot infer an appropriate lifetime due to conflicting requirements
|
||||
E0566, // conflicting representation hints
|
||||
E0623, // lifetime mismatch where both parameters are anonymous regions
|
||||
E0628, // generators cannot have explicit arguments
|
||||
E0628, // generators cannot have explicit parameters
|
||||
E0631, // type mismatch in closure arguments
|
||||
E0637, // "'_" is not a valid lifetime bound
|
||||
E0657, // `impl Trait` can only capture lifetimes bound at the fn level
|
||||
|
@ -2239,7 +2239,7 @@ register_diagnostics! {
|
|||
E0688, // in-band lifetimes cannot be mixed with explicit lifetime binders
|
||||
E0697, // closures cannot be static
|
||||
E0707, // multiple elided lifetimes used in arguments of `async fn`
|
||||
E0708, // `async` non-`move` closures with arguments are not currently supported
|
||||
E0708, // `async` non-`move` closures with parameters are not currently supported
|
||||
E0709, // multiple different lifetimes used in arguments of `async fn`
|
||||
E0710, // an unknown tool name found in scoped lint
|
||||
E0711, // a feature has been declared with conflicting stability attributes
|
||||
|
|
|
@ -724,7 +724,7 @@ impl LoweringContext<'_> {
|
|||
self.sess,
|
||||
fn_decl_span,
|
||||
E0628,
|
||||
"generators cannot have explicit arguments"
|
||||
"generators cannot have explicit parameters"
|
||||
);
|
||||
self.sess.abort_if_errors();
|
||||
}
|
||||
|
@ -775,7 +775,7 @@ impl LoweringContext<'_> {
|
|||
this.sess,
|
||||
fn_decl_span,
|
||||
E0708,
|
||||
"`async` non-`move` closures with arguments are not currently supported",
|
||||
"`async` non-`move` closures with parameters are not currently supported",
|
||||
)
|
||||
.help(
|
||||
"consider using `let` statements to manually capture \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0708]: `async` non-`move` closures with parameters are not currently supported
|
||||
--> $DIR/no-args-non-move-async-closure.rs:6:13
|
||||
--> $DIR/no-params-non-move-async-closure.rs:6:13
|
||||
|
|
||||
LL | let _ = async |x: u8| {};
|
||||
| ^^^^^^^^^^^^^
|
|
@ -1,5 +1,5 @@
|
|||
error[E0628]: generators cannot have explicit parameters
|
||||
--> $DIR/no-arguments-on-generators.rs:4:15
|
||||
--> $DIR/no-parameters-on-generators.rs:4:15
|
||||
|
|
||||
LL | let gen = |start| {
|
||||
| ^^^^^^^
|
Loading…
Reference in a new issue