@@ -2,57 +2,95 @@ error: use of irregular braces for `vec!` macro
2
2
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:43:13
3
3
|
4
4
LL | let _ = vec! {1, 2, 3};
5
- | ^^^^^^^^^^^^^^ help: consider writing: `vec![1, 2, 3]`
5
+ | ^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`
8
8
= help: to override `-D warnings` add `#[allow(clippy::nonstandard_macro_braces)]`
9
+ help: consider writing
10
+ |
11
+ LL | let _ = vec![1, 2, 3];
12
+ | ~~~~~~~~~~~~~
9
13
10
14
error: use of irregular braces for `format!` macro
11
15
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:44:13
12
16
|
13
17
LL | let _ = format!["ugh {} stop being such a good compiler", "hello"];
14
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `format!("ugh {} stop being such a good compiler", "hello")`
18
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
+ |
20
+ help: consider writing
21
+ |
22
+ LL | let _ = format!("ugh {} stop being such a good compiler", "hello");
23
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
24
16
25
error: use of irregular braces for `matches!` macro
17
26
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:45:13
18
27
|
19
28
LL | let _ = matches!{{}, ()};
20
- | ^^^^^^^^^^^^^^^^ help: consider writing: `matches!({}, ())`
29
+ | ^^^^^^^^^^^^^^^^
30
+ |
31
+ help: consider writing
32
+ |
33
+ LL | let _ = matches!({}, ());
34
+ | ~~~~~~~~~~~~~~~~
21
35
22
36
error: use of irregular braces for `quote!` macro
23
37
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:46:13
24
38
|
25
39
LL | let _ = quote!(let x = 1;);
26
- | ^^^^^^^^^^^^^^^^^^ help: consider writing: `quote!{let x = 1;}`
40
+ | ^^^^^^^^^^^^^^^^^^
41
+ |
42
+ help: consider writing
43
+ |
44
+ LL | let _ = quote!{let x = 1;};
45
+ | ~~~~~~~~~~~~~~~~~~
27
46
28
47
error: use of irregular braces for `quote::quote!` macro
29
48
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:47:13
30
49
|
31
50
LL | let _ = quote::quote!(match match match);
32
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `quote::quote!{match match match}`
51
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52
+ |
53
+ help: consider writing
54
+ |
55
+ LL | let _ = quote::quote!{match match match};
56
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
57
34
58
error: use of irregular braces for `vec!` macro
35
59
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:18:9
36
60
|
37
61
LL | vec!{0, 0, 0}
38
- | ^^^^^^^^^^^^^ help: consider writing: `vec![0, 0, 0]`
62
+ | ^^^^^^^^^^^^^
39
63
...
40
64
LL | let _ = test!(); // trigger when macro def is inside our own crate
41
65
| ------- in this macro invocation
42
66
|
43
67
= note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
68
+ help: consider writing
69
+ |
70
+ LL | vec![0, 0, 0]
71
+ |
44
72
45
73
error: use of irregular braces for `type_pos!` macro
46
74
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:56:12
47
75
|
48
76
LL | let _: type_pos!(usize) = vec![];
49
- | ^^^^^^^^^^^^^^^^ help: consider writing: `type_pos![usize]`
77
+ | ^^^^^^^^^^^^^^^^
78
+ |
79
+ help: consider writing
80
+ |
81
+ LL | let _: type_pos![usize] = vec![];
82
+ | ~~~~~~~~~~~~~~~~
50
83
51
84
error: use of irregular braces for `eprint!` macro
52
85
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:58:5
53
86
|
54
87
LL | eprint!("test if user config overrides defaults");
55
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `eprint!["test if user config overrides defaults"]`
88
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89
+ |
90
+ help: consider writing
91
+ |
92
+ LL | eprint!["test if user config overrides defaults"];
93
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56
94
57
95
error: aborting due to 8 previous errors
58
96
0 commit comments