Special-case item attributes in the suggestion output
This commit is contained in:
parent
7a0fb902bc
commit
4680aa2fd0
@ -7,13 +7,10 @@ LL | _n: PhantomData,
|
||||
help: consider importing one of these items
|
||||
|
|
||||
LL + use core::marker::PhantomData;
|
||||
LL | trait TypeVal<T> {
|
||||
|
|
||||
LL + use serde::__private::PhantomData;
|
||||
LL | trait TypeVal<T> {
|
||||
|
|
||||
LL + use std::marker::PhantomData;
|
||||
LL | trait TypeVal<T> {
|
||||
|
|
||||
|
||||
error[E0412]: cannot find type `VAL` in this scope
|
||||
|
@ -14,7 +14,6 @@ LL + fn default() -> Self {
|
||||
LL + Self::new()
|
||||
LL + }
|
||||
LL + }
|
||||
LL | impl Foo {
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `Bar`
|
||||
@ -32,7 +31,6 @@ LL + fn default() -> Self {
|
||||
LL + Self::new()
|
||||
LL + }
|
||||
LL + }
|
||||
LL | impl Bar {
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `LtKo<'c>`
|
||||
@ -50,7 +48,6 @@ LL + fn default() -> Self {
|
||||
LL + Self::new()
|
||||
LL + }
|
||||
LL + }
|
||||
LL | impl<'c> LtKo<'c> {
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `NewNotEqualToDerive`
|
||||
@ -68,7 +65,6 @@ LL + fn default() -> Self {
|
||||
LL + Self::new()
|
||||
LL + }
|
||||
LL + }
|
||||
LL | impl NewNotEqualToDerive {
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `FooGenerics<T>`
|
||||
@ -86,7 +82,6 @@ LL + fn default() -> Self {
|
||||
LL + Self::new()
|
||||
LL + }
|
||||
LL + }
|
||||
LL | impl<T> FooGenerics<T> {
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `BarGenerics<T>`
|
||||
@ -104,7 +99,6 @@ LL + fn default() -> Self {
|
||||
LL + Self::new()
|
||||
LL + }
|
||||
LL + }
|
||||
LL | impl<T: Copy> BarGenerics<T> {
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `Foo<T>`
|
||||
|
Loading…
Reference in New Issue
Block a user