review comment

This commit is contained in:
Esteban Küber 2019-10-02 12:26:49 -07:00
parent 5cbe6aa6ca
commit a180294f8b
15 changed files with 21 additions and 21 deletions

View File

@ -1001,7 +1001,7 @@ fn report_bivariance(tcx: TyCtxt<'_>, span: Span, param_name: ast::Name) {
// Help is available only in presence of lang items.
let msg = if let Some(def_id) = suggested_marker_id {
format!(
"consider removing `{}`, refering to it in a field or using a marker such as `{}`",
"consider removing `{}`, refering to it in a field, or using a marker such as `{}`",
param_name,
tcx.def_path_str(def_id),
)

View File

@ -18,7 +18,7 @@ error[E0392]: parameter `T` is never used
LL | pub struct Dependent<T, const X: T>([(); X]);
| ^ unused parameter
|
= help: consider removing `T`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 2 previous errors

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `T` is never used
LL | enum Foo<T> { Bar }
| ^ unused parameter
|
= help: consider removing `T`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to previous error

View File

@ -14,7 +14,7 @@ error[E0392]: parameter `T` is never used
LL | enum Bar<T> { What }
| ^ unused parameter
|
= help: consider removing `T`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 2 previous errors

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `T` is never used
LL | struct Foo<T> where T: Copy;
| ^ unused parameter
|
= help: consider removing `T`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to previous error

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `T` is never used
LL | struct NoData<T>;
| ^ unused parameter
|
= help: consider removing `T`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error[E0275]: overflow evaluating the requirement `NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<T>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>: Foo`
--> $DIR/issue-20413.rs:8:1

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `'a` is never used
LL | struct Foo<'a, A> {}
| ^^ unused parameter
|
= help: consider removing `'a`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'a`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error[E0392]: parameter `A` is never used
--> $DIR/issue-36299.rs:1:16
@ -12,7 +12,7 @@ error[E0392]: parameter `A` is never used
LL | struct Foo<'a, A> {}
| ^ unused parameter
|
= help: consider removing `A`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `A`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 2 previous errors

View File

@ -16,7 +16,7 @@ error[E0392]: parameter `Self` is never used
LL | struct Foo<Self>(Self);
| ^^^^ unused parameter
|
= help: consider removing `Self`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `Self`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 3 previous errors

View File

@ -20,7 +20,7 @@ error[E0392]: parameter `T` is never used
LL | struct Foo<T: ?Hash> { }
| ^ unused parameter
|
= help: consider removing `T`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 2 previous errors

View File

@ -27,7 +27,7 @@ error[E0392]: parameter `'c` is never used
LL | struct Foo<'a,'b,'c> {
| ^^ unused parameter
|
= help: consider removing `'c`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'c`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 3 previous errors

View File

@ -76,7 +76,7 @@ error[E0392]: parameter `'Self` is never used
LL | struct Bar<'Self>;
| ^^^^^ unused parameter
|
= help: consider removing `'Self`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'Self`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 12 previous errors

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `'a` is never used
LL | struct Bivariant<'a>;
| ^^ unused parameter
|
= help: consider removing `'a`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'a`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error[E0392]: parameter `'d` is never used
--> $DIR/variance-regions-unused-direct.rs:7:19
@ -12,7 +12,7 @@ error[E0392]: parameter `'d` is never used
LL | struct Struct<'a, 'd> {
| ^^ unused parameter
|
= help: consider removing `'d`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'d`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 2 previous errors

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `'a` is never used
LL | enum Foo<'a> {
| ^^ unused parameter
|
= help: consider removing `'a`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'a`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error[E0392]: parameter `'a` is never used
--> $DIR/variance-regions-unused-indirect.rs:7:10
@ -12,7 +12,7 @@ error[E0392]: parameter `'a` is never used
LL | enum Bar<'a> {
| ^^ unused parameter
|
= help: consider removing `'a`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'a`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 2 previous errors

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `'a` is never used
LL | struct SomeStruct<'a> { x: u32 }
| ^^ unused parameter
|
= help: consider removing `'a`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'a`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error[E0392]: parameter `'a` is never used
--> $DIR/variance-unused-region-param.rs:4:15
@ -12,7 +12,7 @@ error[E0392]: parameter `'a` is never used
LL | enum SomeEnum<'a> { Nothing }
| ^^ unused parameter
|
= help: consider removing `'a`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `'a`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 2 previous errors

View File

@ -4,7 +4,7 @@ error[E0392]: parameter `A` is never used
LL | struct SomeStruct<A> { x: u32 }
| ^ unused parameter
|
= help: consider removing `A`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `A`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error[E0392]: parameter `A` is never used
--> $DIR/variance-unused-type-param.rs:9:15
@ -12,7 +12,7 @@ error[E0392]: parameter `A` is never used
LL | enum SomeEnum<A> { Nothing }
| ^ unused parameter
|
= help: consider removing `A`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `A`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error[E0392]: parameter `T` is never used
--> $DIR/variance-unused-type-param.rs:13:15
@ -20,7 +20,7 @@ error[E0392]: parameter `T` is never used
LL | enum ListCell<T> {
| ^ unused parameter
|
= help: consider removing `T`, refering to it in a field or using a marker such as `std::marker::PhantomData`
= help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
error: aborting due to 3 previous errors