about summary refs log tree commit diff
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2024-04-29 14:53:38 +0200
committerest31 <MTest31@outlook.com>2024-04-29 14:53:38 +0200
commitc6e946d0f0405fb7641b7dd2cad2d9432e2313f8 (patch)
treef236a2145926883a89ad881388a003c752378096
parent4284bca7209fc9eb03a8db5a388479ff723cc70d (diff)
downloadrust-c6e946d0f0405fb7641b7dd2cad2d9432e2313f8.tar.gz
rust-c6e946d0f0405fb7641b7dd2cad2d9432e2313f8.zip
Change wording
-rw-r--r--compiler/rustc_ast_lowering/messages.ftl2
-rw-r--r--tests/ui/issues/issue-43250.stderr4
-rw-r--r--tests/ui/lowering/expr-in-pat-issue-99380.stderr2
-rw-r--r--tests/ui/macros/vec-macro-in-pattern.stderr2
-rw-r--r--tests/ui/match/expr_before_ident_pat.stderr2
-rw-r--r--tests/ui/pattern/issue-92074-macro-ice.stderr6
6 files changed, 9 insertions, 9 deletions
diff --git a/compiler/rustc_ast_lowering/messages.ftl b/compiler/rustc_ast_lowering/messages.ftl
index aa5a85b9c4c..10efe6fba65 100644
--- a/compiler/rustc_ast_lowering/messages.ftl
+++ b/compiler/rustc_ast_lowering/messages.ftl
@@ -5,7 +5,7 @@ ast_lowering_abi_specified_multiple_times =
 
 ast_lowering_arbitrary_expression_in_pattern =
     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
 
diff --git a/tests/ui/issues/issue-43250.stderr b/tests/ui/issues/issue-43250.stderr
index 01c22a9e791..e74342b85ad 100644
--- a/tests/ui/issues/issue-43250.stderr
+++ b/tests/ui/issues/issue-43250.stderr
@@ -4,7 +4,7 @@ error: arbitrary expressions aren't allowed in patterns
 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
   --> $DIR/issue-43250.rs:11:8
@@ -12,7 +12,7 @@ error: arbitrary expressions aren't allowed in patterns
 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
 
diff --git a/tests/ui/lowering/expr-in-pat-issue-99380.stderr b/tests/ui/lowering/expr-in-pat-issue-99380.stderr
index 7438bba270c..29438c9b063 100644
--- a/tests/ui/lowering/expr-in-pat-issue-99380.stderr
+++ b/tests/ui/lowering/expr-in-pat-issue-99380.stderr
@@ -4,7 +4,7 @@ error: arbitrary expressions aren't allowed in patterns
 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
 
diff --git a/tests/ui/macros/vec-macro-in-pattern.stderr b/tests/ui/macros/vec-macro-in-pattern.stderr
index 7c87f3b7b8e..1a446b8c3ed 100644
--- a/tests/ui/macros/vec-macro-in-pattern.stderr
+++ b/tests/ui/macros/vec-macro-in-pattern.stderr
@@ -4,7 +4,7 @@ error: arbitrary expressions aren't allowed in patterns
 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)
 
 error: aborting due to 1 previous error
diff --git a/tests/ui/match/expr_before_ident_pat.stderr b/tests/ui/match/expr_before_ident_pat.stderr
index 2f59573b53f..1657c51545c 100644
--- a/tests/ui/match/expr_before_ident_pat.stderr
+++ b/tests/ui/match/expr_before_ident_pat.stderr
@@ -10,7 +10,7 @@ error: arbitrary expressions aren't allowed in patterns
 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
 
diff --git a/tests/ui/pattern/issue-92074-macro-ice.stderr b/tests/ui/pattern/issue-92074-macro-ice.stderr
index bf53eb4bbcd..025592116e5 100644
--- a/tests/ui/pattern/issue-92074-macro-ice.stderr
+++ b/tests/ui/pattern/issue-92074-macro-ice.stderr
@@ -7,7 +7,7 @@ LL |     () => { force_expr!(Vec::new()) }
 LL |     assert!(matches!(x, En::A(make_vec!())));
    |                               ----------- 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)
 
 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!()));
    |                         ----------- 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)
 
 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!()));
    |                         ----------- 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)
 
 error: aborting due to 3 previous errors