Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8ef3d49

Browse files
committedJul 3, 2024
Make the default suggestions show the full patch output
Before ``` error: almost complete ascii range --> tests/ui/almost_complete_range.rs:17:17 | LL | let _ = ('a') ..'z'; | ^^^^^^--^^^ | | | help: use an inclusive range: `..=` | = note: `-D clippy::almost-complete-range` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::almost_complete_range)]` ``` After ``` error: almost complete ascii range --> tests/ui/almost_complete_range.rs:17:17 | LL | let _ = ('a') ..'z'; | ^^^^^^^^^^^ | = note: `-D clippy::almost-complete-range` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::almost_complete_range)]` help: use an inclusive range | LL | let _ = ('a') ..='z'; | ~~~ ```
1 parent 2495953 commit 8ef3d49

File tree

861 files changed

+30157
-7055
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

861 files changed

+30157
-7055
lines changed
 

‎src/tools/clippy/tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.stderr

+46-8
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,95 @@ error: use of irregular braces for `vec!` macro
22
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:43:13
33
|
44
LL | let _ = vec! {1, 2, 3};
5-
| ^^^^^^^^^^^^^^ help: consider writing: `vec![1, 2, 3]`
5+
| ^^^^^^^^^^^^^^
66
|
77
= note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::nonstandard_macro_braces)]`
9+
help: consider writing
10+
|
11+
LL | let _ = vec![1, 2, 3];
12+
| ~~~~~~~~~~~~~
913

1014
error: use of irregular braces for `format!` macro
1115
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:44:13
1216
|
1317
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+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1524

1625
error: use of irregular braces for `matches!` macro
1726
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:45:13
1827
|
1928
LL | let _ = matches!{{}, ()};
20-
| ^^^^^^^^^^^^^^^^ help: consider writing: `matches!({}, ())`
29+
| ^^^^^^^^^^^^^^^^
30+
|
31+
help: consider writing
32+
|
33+
LL | let _ = matches!({}, ());
34+
| ~~~~~~~~~~~~~~~~
2135

2236
error: use of irregular braces for `quote!` macro
2337
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:46:13
2438
|
2539
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+
| ~~~~~~~~~~~~~~~~~~
2746

2847
error: use of irregular braces for `quote::quote!` macro
2948
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:47:13
3049
|
3150
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+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3357

3458
error: use of irregular braces for `vec!` macro
3559
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:18:9
3660
|
3761
LL | vec!{0, 0, 0}
38-
| ^^^^^^^^^^^^^ help: consider writing: `vec![0, 0, 0]`
62+
| ^^^^^^^^^^^^^
3963
...
4064
LL | let _ = test!(); // trigger when macro def is inside our own crate
4165
| ------- in this macro invocation
4266
|
4367
= 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+
|
4472

4573
error: use of irregular braces for `type_pos!` macro
4674
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:56:12
4775
|
4876
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+
| ~~~~~~~~~~~~~~~~
5083

5184
error: use of irregular braces for `eprint!` macro
5285
--> tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs:58:5
5386
|
5487
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+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5694

5795
error: aborting due to 8 previous errors
5896

‎src/tools/clippy/tests/ui-toml/toml_trivially_copy/test.stderr

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,25 @@ error: this argument (N byte) is passed by reference, but would be more efficien
22
--> tests/ui-toml/toml_trivially_copy/test.rs:15:11
33
|
44
LL | fn bad(x: &u16, y: &Foo) {}
5-
| ^^^^ help: consider passing by value instead: `u16`
5+
| ^^^^
66
|
77
= note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::trivially_copy_pass_by_ref)]`
9+
help: consider passing by value instead
10+
|
11+
LL | fn bad(x: u16, y: &Foo) {}
12+
| ~~~
913

1014
error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
1115
--> tests/ui-toml/toml_trivially_copy/test.rs:15:20
1216
|
1317
LL | fn bad(x: &u16, y: &Foo) {}
14-
| ^^^^ help: consider passing by value instead: `Foo`
18+
| ^^^^
19+
|
20+
help: consider passing by value instead
21+
|
22+
LL | fn bad(x: &u16, y: Foo) {}
23+
| ~~~
1524

1625
error: aborting due to 2 previous errors
1726

‎src/tools/clippy/tests/ui-toml/toml_unknown_key/conf_unknown_key.stderr

+6-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,12 @@ error: error reading Clippy's configuration file: unknown field `allow_mixed_uni
248248
--> $DIR/tests/ui-toml/toml_unknown_key/clippy.toml:7:1
249249
|
250250
LL | allow_mixed_uninlined_format_args = true
251-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: perhaps you meant: `allow-mixed-uninlined-format-args`
251+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
252+
|
253+
help: perhaps you meant
254+
|
255+
LL | allow-mixed-uninlined-format-args = true
256+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
252257

253258
error: aborting due to 3 previous errors
254259

There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.