1
1
error: use of irregular braces for `vec!` macro
2
- --> $DIR/conf_nonstandard_macro_braces.rs:29 :13
2
+ --> $DIR/conf_nonstandard_macro_braces.rs:37 :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:29 :13
9
+ --> $DIR/conf_nonstandard_macro_braces.rs:37 :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:30 :13
15
+ --> $DIR/conf_nonstandard_macro_braces.rs:38 :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:30 :13
21
+ --> $DIR/conf_nonstandard_macro_braces.rs:38 :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:31 :13
27
+ --> $DIR/conf_nonstandard_macro_braces.rs:39 :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:31 :13
33
+ --> $DIR/conf_nonstandard_macro_braces.rs:39 :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:32 :13
39
+ --> $DIR/conf_nonstandard_macro_braces.rs:40 :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:32 :13
45
+ --> $DIR/conf_nonstandard_macro_braces.rs:40 :13
46
46
|
47
47
LL | let _ = quote::quote!(match match match);
48
48
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
49
50
50
error: use of irregular braces for `vec!` macro
51
- --> $DIR/conf_nonstandard_macro_braces.rs:10 :9
51
+ --> $DIR/conf_nonstandard_macro_braces.rs:18 :9
52
52
|
53
53
LL | vec!{0, 0, 0}
54
54
| ^^^^^^^^^^^^^
@@ -57,7 +57,7 @@ LL | let _ = test!();
57
57
| ------- in this macro invocation
58
58
|
59
59
help: consider writing `vec![0, 0, 0]`
60
- --> $DIR/conf_nonstandard_macro_braces.rs:10 :9
60
+ --> $DIR/conf_nonstandard_macro_braces.rs:18 :9
61
61
|
62
62
LL | vec!{0, 0, 0}
63
63
| ^^^^^^^^^^^^^
@@ -67,25 +67,25 @@ 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:41 :12
70
+ --> $DIR/conf_nonstandard_macro_braces.rs:49 :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:41 :12
76
+ --> $DIR/conf_nonstandard_macro_braces.rs:49 :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:43 :5
82
+ --> $DIR/conf_nonstandard_macro_braces.rs:51 :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:43 :5
88
+ --> $DIR/conf_nonstandard_macro_braces.rs:51 :5
89
89
|
90
90
LL | eprint!("test if user config overrides defaults");
91
91
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments