1
1
error: 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
3
3
|
4
4
LL | let _ = vec! {1, 2, 3};
5
5
| ^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`
8
8
help: consider writing `vec![1, 2, 3]`
9
- --> $DIR/conf_nonstandard_macro_braces.rs:37 :13
9
+ --> $DIR/conf_nonstandard_macro_braces.rs:43 :13
10
10
|
11
11
LL | let _ = vec! {1, 2, 3};
12
12
| ^^^^^^^^^^^^^^
13
13
14
14
error: 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
16
16
|
17
17
LL | let _ = format!["ugh {} stop being such a good compiler", "hello"];
18
18
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
19
|
20
20
help: 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
22
22
|
23
23
LL | let _ = format!["ugh {} stop being such a good compiler", "hello"];
24
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
25
26
26
error: 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
28
28
|
29
29
LL | let _ = quote!(let x = 1;);
30
30
| ^^^^^^^^^^^^^^^^^^
31
31
|
32
32
help: consider writing `quote! {let x = 1;}`
33
- --> $DIR/conf_nonstandard_macro_braces.rs:39 :13
33
+ --> $DIR/conf_nonstandard_macro_braces.rs:45 :13
34
34
|
35
35
LL | let _ = quote!(let x = 1;);
36
36
| ^^^^^^^^^^^^^^^^^^
37
37
38
38
error: 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
40
40
|
41
41
LL | let _ = quote::quote!(match match match);
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
|
44
44
help: 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
46
46
|
47
47
LL | let _ = quote::quote!(match match match);
48
48
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -67,28 +67,40 @@ LL | let _ = test!();
67
67
= note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
68
68
69
69
error: 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
71
71
|
72
72
LL | let _: type_pos!(usize) = vec![];
73
73
| ^^^^^^^^^^^^^^^^
74
74
|
75
75
help: consider writing `type_pos![usize]`
76
- --> $DIR/conf_nonstandard_macro_braces.rs:49 :12
76
+ --> $DIR/conf_nonstandard_macro_braces.rs:55 :12
77
77
|
78
78
LL | let _: type_pos!(usize) = vec![];
79
79
| ^^^^^^^^^^^^^^^^
80
80
81
81
error: 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
83
83
|
84
84
LL | eprint!("test if user config overrides defaults");
85
85
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86
86
|
87
87
help: 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
89
89
|
90
90
LL | eprint!("test if user config overrides defaults");
91
91
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
92
93
- error: aborting due to 7 previous errors
93
+ error: use of irregular braces for `printlnfoo!` macro
94
+ --> $DIR/conf_nonstandard_macro_braces.rs:61:5
95
+ |
96
+ LL | printlnfoo!("you");
97
+ | ^^^^^^^^^^^^^^^^^^^
98
+ |
99
+ help: consider writing `printlnfoo!["you"];`
100
+ --> $DIR/conf_nonstandard_macro_braces.rs:61:5
101
+ |
102
+ LL | printlnfoo!("you");
103
+ | ^^^^^^^^^^^^^^^^^^^
104
+
105
+ error: aborting due to 8 previous errors
94
106
0 commit comments