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