File tree 4 files changed +6
-28
lines changed
4 files changed +6
-28
lines changed Original file line number Diff line number Diff line change @@ -1784,7 +1784,7 @@ pub(crate) struct ExpectedTraitInTraitImplFoundType {
1784
1784
#[ diag( parse_extra_impl_keyword_in_trait_impl) ]
1785
1785
pub ( crate ) struct ExtraImplKeywordInTraitImpl {
1786
1786
#[ primary_span]
1787
- #[ suggestion( code = "" , applicability = "maybe-incorrect" , style = "verbose " ) ]
1787
+ #[ suggestion( code = "" , applicability = "maybe-incorrect" , style = "short " ) ]
1788
1788
pub extra_impl_kw : Span ,
1789
1789
#[ note]
1790
1790
pub impl_trait_span : Span ,
@@ -2890,7 +2890,7 @@ pub(crate) struct MacroRulesMissingBang {
2890
2890
#[ diag( parse_macro_name_remove_bang) ]
2891
2891
pub ( crate ) struct MacroNameRemoveBang {
2892
2892
#[ primary_span]
2893
- #[ suggestion( code = "" , applicability = "machine-applicable" , style = "verbose " ) ]
2893
+ #[ suggestion( code = "" , applicability = "machine-applicable" , style = "short " ) ]
2894
2894
pub span : Span ,
2895
2895
}
2896
2896
Original file line number Diff line number Diff line change @@ -2,35 +2,25 @@ error: unexpected `impl` keyword
2
2
--> $DIR/extra-impl-in-trait-impl.rs:8:18
3
3
|
4
4
LL | impl<T: Default> impl Default for S<T> {
5
- | ^^^^^
5
+ | ^^^^^ help: remove the extra `impl`
6
6
|
7
7
note: this is parsed as an `impl Trait` type, but a trait is expected at this position
8
8
--> $DIR/extra-impl-in-trait-impl.rs:8:18
9
9
|
10
10
LL | impl<T: Default> impl Default for S<T> {
11
11
| ^^^^^^^^^^^^
12
- help: remove the extra `impl`
13
- |
14
- LL - impl<T: Default> impl Default for S<T> {
15
- LL + impl<T: Default> Default for S<T> {
16
- |
17
12
18
13
error: unexpected `impl` keyword
19
14
--> $DIR/extra-impl-in-trait-impl.rs:14:6
20
15
|
21
16
LL | impl impl Default for S2 {
22
- | ^^^^^
17
+ | ^^^^^ help: remove the extra `impl`
23
18
|
24
19
note: this is parsed as an `impl Trait` type, but a trait is expected at this position
25
20
--> $DIR/extra-impl-in-trait-impl.rs:14:6
26
21
|
27
22
LL | impl impl Default for S2 {
28
23
| ^^^^^^^^^^^^
29
- help: remove the extra `impl`
30
- |
31
- LL - impl impl Default for S2 {
32
- LL + impl Default for S2 {
33
- |
34
24
35
25
error: aborting due to 2 previous errors
36
26
Original file line number Diff line number Diff line change @@ -2,13 +2,7 @@ error: macro names aren't followed by a `!`
2
2
--> $DIR/bang-after-name.rs:4:17
3
3
|
4
4
LL | macro_rules! foo! {
5
- | ^
6
- |
7
- help: remove the `!`
8
- |
9
- LL - macro_rules! foo! {
10
- LL + macro_rules! foo {
11
- |
5
+ | ^ help: remove the `!`
12
6
13
7
error: aborting due to 1 previous error
14
8
Original file line number Diff line number Diff line change @@ -24,13 +24,7 @@ error: macro names aren't followed by a `!`
24
24
--> $DIR/missing-bang-in-decl.rs:10:16
25
25
|
26
26
LL | macro_rules bar! {
27
- | ^
28
- |
29
- help: remove the `!`
30
- |
31
- LL - macro_rules bar! {
32
- LL + macro_rules bar {
33
- |
27
+ | ^ help: remove the `!`
34
28
35
29
error: aborting due to 3 previous errors
36
30
You can’t perform that action at this time.
0 commit comments