Skip to content

Commit 4680aa2

Browse files
committed
Special-case item attributes in the suggestion output
1 parent 7a0fb90 commit 4680aa2

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

tests/ui/crashes/ice-6252.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ LL | _n: PhantomData,
77
help: consider importing one of these items
88
|
99
LL + use core::marker::PhantomData;
10-
LL | trait TypeVal<T> {
1110
|
1211
LL + use serde::__private::PhantomData;
13-
LL | trait TypeVal<T> {
1412
|
1513
LL + use std::marker::PhantomData;
16-
LL | trait TypeVal<T> {
1714
|
1815

1916
error[E0412]: cannot find type `VAL` in this scope

tests/ui/new_without_default.stderr

-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ LL + fn default() -> Self {
1414
LL + Self::new()
1515
LL + }
1616
LL + }
17-
LL | impl Foo {
1817
|
1918

2019
error: you should consider adding a `Default` implementation for `Bar`
@@ -32,7 +31,6 @@ LL + fn default() -> Self {
3231
LL + Self::new()
3332
LL + }
3433
LL + }
35-
LL | impl Bar {
3634
|
3735

3836
error: you should consider adding a `Default` implementation for `LtKo<'c>`
@@ -50,7 +48,6 @@ LL + fn default() -> Self {
5048
LL + Self::new()
5149
LL + }
5250
LL + }
53-
LL | impl<'c> LtKo<'c> {
5451
|
5552

5653
error: you should consider adding a `Default` implementation for `NewNotEqualToDerive`
@@ -68,7 +65,6 @@ LL + fn default() -> Self {
6865
LL + Self::new()
6966
LL + }
7067
LL + }
71-
LL | impl NewNotEqualToDerive {
7268
|
7369

7470
error: you should consider adding a `Default` implementation for `FooGenerics<T>`
@@ -86,7 +82,6 @@ LL + fn default() -> Self {
8682
LL + Self::new()
8783
LL + }
8884
LL + }
89-
LL | impl<T> FooGenerics<T> {
9085
|
9186

9287
error: you should consider adding a `Default` implementation for `BarGenerics<T>`
@@ -104,7 +99,6 @@ LL + fn default() -> Self {
10499
LL + Self::new()
105100
LL + }
106101
LL + }
107-
LL | impl<T: Copy> BarGenerics<T> {
108102
|
109103

110104
error: you should consider adding a `Default` implementation for `Foo<T>`

0 commit comments

Comments
 (0)