11error: use of irregular braces for `vec!` macro
2- --> $DIR/conf_nonstandard_macro_braces.rs:37 :13
2+ --> $DIR/conf_nonstandard_macro_braces.rs:43 :13
33 |
44LL | let _ = vec! {1, 2, 3};
55 | ^^^^^^^^^^^^^^
66 |
77 = note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`
88help: consider writing `vec![1, 2, 3]`
9- --> $DIR/conf_nonstandard_macro_braces.rs:37 :13
9+ --> $DIR/conf_nonstandard_macro_braces.rs:43 :13
1010 |
1111LL | let _ = vec! {1, 2, 3};
1212 | ^^^^^^^^^^^^^^
1313
1414error: use of irregular braces for `format!` macro
15- --> $DIR/conf_nonstandard_macro_braces.rs:38 :13
15+ --> $DIR/conf_nonstandard_macro_braces.rs:44 :13
1616 |
1717LL | let _ = format!["ugh {} stop being such a good compiler", "hello"];
1818 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1919 |
2020help: consider writing `format!("ugh () stop being such a good compiler", "hello")`
21- --> $DIR/conf_nonstandard_macro_braces.rs:38 :13
21+ --> $DIR/conf_nonstandard_macro_braces.rs:44 :13
2222 |
2323LL | let _ = format!["ugh {} stop being such a good compiler", "hello"];
2424 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2525
2626error: use of irregular braces for `quote!` macro
27- --> $DIR/conf_nonstandard_macro_braces.rs:39 :13
27+ --> $DIR/conf_nonstandard_macro_braces.rs:45 :13
2828 |
2929LL | let _ = quote!(let x = 1;);
3030 | ^^^^^^^^^^^^^^^^^^
3131 |
3232help: consider writing `quote! {let x = 1;}`
33- --> $DIR/conf_nonstandard_macro_braces.rs:39 :13
33+ --> $DIR/conf_nonstandard_macro_braces.rs:45 :13
3434 |
3535LL | let _ = quote!(let x = 1;);
3636 | ^^^^^^^^^^^^^^^^^^
3737
3838error: use of irregular braces for `quote::quote!` macro
39- --> $DIR/conf_nonstandard_macro_braces.rs:40 :13
39+ --> $DIR/conf_nonstandard_macro_braces.rs:46 :13
4040 |
4141LL | let _ = quote::quote!(match match match);
4242 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4343 |
4444help: consider writing `quote::quote! {match match match}`
45- --> $DIR/conf_nonstandard_macro_braces.rs:40 :13
45+ --> $DIR/conf_nonstandard_macro_braces.rs:46 :13
4646 |
4747LL | let _ = quote::quote!(match match match);
4848 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -53,7 +53,7 @@ error: use of irregular braces for `vec!` macro
5353LL | vec!{0, 0, 0}
5454 | ^^^^^^^^^^^^^
5555...
56- LL | let _ = test!();
56+ LL | let _ = test!(); // trigger when macro def is inside our own crate
5757 | ------- in this macro invocation
5858 |
5959help: consider writing `vec![0, 0, 0]`
@@ -62,30 +62,30 @@ help: consider writing `vec![0, 0, 0]`
6262LL | vec!{0, 0, 0}
6363 | ^^^^^^^^^^^^^
6464...
65- LL | let _ = test!();
65+ LL | let _ = test!(); // trigger when macro def is inside our own crate
6666 | ------- in this macro invocation
6767 = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
6868
6969error: use of irregular braces for `type_pos!` macro
70- --> $DIR/conf_nonstandard_macro_braces.rs:49 :12
70+ --> $DIR/conf_nonstandard_macro_braces.rs:55 :12
7171 |
7272LL | let _: type_pos!(usize) = vec![];
7373 | ^^^^^^^^^^^^^^^^
7474 |
7575help: consider writing `type_pos![usize]`
76- --> $DIR/conf_nonstandard_macro_braces.rs:49 :12
76+ --> $DIR/conf_nonstandard_macro_braces.rs:55 :12
7777 |
7878LL | let _: type_pos!(usize) = vec![];
7979 | ^^^^^^^^^^^^^^^^
8080
8181error: use of irregular braces for `eprint!` macro
82- --> $DIR/conf_nonstandard_macro_braces.rs:51 :5
82+ --> $DIR/conf_nonstandard_macro_braces.rs:57 :5
8383 |
8484LL | eprint!("test if user config overrides defaults");
8585 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8686 |
8787help: consider writing `eprint!["test if user config overrides defaults"];`
88- --> $DIR/conf_nonstandard_macro_braces.rs:51 :5
88+ --> $DIR/conf_nonstandard_macro_braces.rs:57 :5
8989 |
9090LL | eprint!("test if user config overrides defaults");
9191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments