Change wording
This commit is contained in:
parent
4284bca720
commit
c6e946d0f0
6 changed files with 9 additions and 9 deletions
|
@ -5,7 +5,7 @@ ast_lowering_abi_specified_multiple_times =
|
||||||
|
|
||||||
ast_lowering_arbitrary_expression_in_pattern =
|
ast_lowering_arbitrary_expression_in_pattern =
|
||||||
arbitrary expressions aren't allowed in patterns
|
arbitrary expressions aren't allowed in patterns
|
||||||
.pattern_from_macro_note = the :expr fragment specifier forces the metavariable's content to be an expression
|
.pattern_from_macro_note = the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
|
|
||||||
ast_lowering_argument = argument
|
ast_lowering_argument = argument
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: arbitrary expressions aren't allowed in patterns
|
||||||
LL | m!(y);
|
LL | m!(y);
|
||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
|
|
||||||
error: arbitrary expressions aren't allowed in patterns
|
error: arbitrary expressions aren't allowed in patterns
|
||||||
--> $DIR/issue-43250.rs:11:8
|
--> $DIR/issue-43250.rs:11:8
|
||||||
|
@ -12,7 +12,7 @@ error: arbitrary expressions aren't allowed in patterns
|
||||||
LL | m!(C);
|
LL | m!(C);
|
||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: arbitrary expressions aren't allowed in patterns
|
||||||
LL | foo!(Some(3));
|
LL | foo!(Some(3));
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: arbitrary expressions aren't allowed in patterns
|
||||||
LL | Some(vec![43]) => {}
|
LL | Some(vec![43]) => {}
|
||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
|
|
@ -10,7 +10,7 @@ error: arbitrary expressions aren't allowed in patterns
|
||||||
LL | funny!(a, a);
|
LL | funny!(a, a);
|
||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ LL | () => { force_expr!(Vec::new()) }
|
||||||
LL | assert!(matches!(x, En::A(make_vec!())));
|
LL | assert!(matches!(x, En::A(make_vec!())));
|
||||||
| ----------- in this macro invocation
|
| ----------- in this macro invocation
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
= note: this error originates in the macro `make_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `make_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: arbitrary expressions aren't allowed in patterns
|
error: arbitrary expressions aren't allowed in patterns
|
||||||
|
@ -19,7 +19,7 @@ LL | () => { force_pat!(get_usize(), get_usize()) }
|
||||||
LL | assert!(matches!(5, make_pat!()));
|
LL | assert!(matches!(5, make_pat!()));
|
||||||
| ----------- in this macro invocation
|
| ----------- in this macro invocation
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
= note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: arbitrary expressions aren't allowed in patterns
|
error: arbitrary expressions aren't allowed in patterns
|
||||||
|
@ -31,7 +31,7 @@ LL | () => { force_pat!(get_usize(), get_usize()) }
|
||||||
LL | assert!(matches!(5, make_pat!()));
|
LL | assert!(matches!(5, make_pat!()));
|
||||||
| ----------- in this macro invocation
|
| ----------- in this macro invocation
|
||||||
|
|
|
|
||||||
= note: the :expr fragment specifier forces the metavariable's content to be an expression
|
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
|
||||||
= note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue