summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.stderr
blob: 7ae3815978c7742c24f0cc78937d348816146d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
error: use of irregular braces for `vec!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:44:13
   |
LL |     let _ = vec! {1, 2, 3};
   |             ^^^^^^^^^^^^^^ help: consider writing: `vec![1, 2, 3]`
   |
   = note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`

error: use of irregular braces for `format!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:45:13
   |
LL |     let _ = format!["ugh {} stop being such a good compiler", "hello"];
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `format!("ugh {} stop being such a good compiler", "hello")`

error: use of irregular braces for `matches!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:46:13
   |
LL |     let _ = matches!{{}, ()};
   |             ^^^^^^^^^^^^^^^^ help: consider writing: `matches!({}, ())`

error: use of irregular braces for `quote!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:47:13
   |
LL |     let _ = quote!(let x = 1;);
   |             ^^^^^^^^^^^^^^^^^^ help: consider writing: `quote!{let x = 1;}`

error: use of irregular braces for `quote::quote!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:48:13
   |
LL |     let _ = quote::quote!(match match match);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `quote::quote!{match match match}`

error: use of irregular braces for `vec!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:19:9
   |
LL |         vec!{0, 0, 0}
   |         ^^^^^^^^^^^^^ help: consider writing: `vec![0, 0, 0]`
...
LL |     let _ = test!(); // trigger when macro def is inside our own crate
   |             ------- in this macro invocation
   |
   = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)

error: use of irregular braces for `type_pos!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:57:12
   |
LL |     let _: type_pos!(usize) = vec![];
   |            ^^^^^^^^^^^^^^^^ help: consider writing: `type_pos![usize]`

error: use of irregular braces for `eprint!` macro
  --> $DIR/conf_nonstandard_macro_braces.rs:59:5
   |
LL |     eprint!("test if user config overrides defaults");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `eprint!["test if user config overrides defaults"]`

error: aborting due to 8 previous errors