mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Rollup merge of #102119 - steffahn:fix-pararmeter, r=dtolnay
Fix a typo “pararmeter” in error message Issue reported on IRLO: https://internals.rust-lang.org/t/fixing-a-typo/17427
This commit is contained in:
commit
53e08f36be
@ -173,7 +173,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
|
|||||||
span,
|
span,
|
||||||
span_label: match res {
|
span_label: match res {
|
||||||
Res::Def(kind, def_id) if kind == DefKind::TyParam => {
|
Res::Def(kind, def_id) if kind == DefKind::TyParam => {
|
||||||
self.def_span(def_id).map(|span| (span, "found this type pararmeter"))
|
self.def_span(def_id).map(|span| (span, "found this type parameter"))
|
||||||
}
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
},
|
},
|
||||||
|
@ -4,7 +4,7 @@ error[E0423]: expected value, found type parameter `T`
|
|||||||
LL | impl<T> Bar<T> for [u8; T] {}
|
LL | impl<T> Bar<T> for [u8; T] {}
|
||||||
| - ^ not a value
|
| - ^ not a value
|
||||||
| |
|
| |
|
||||||
| found this type pararmeter
|
| found this type parameter
|
||||||
|
|
||||||
error[E0599]: the function or associated item `foo` exists for struct `Foo<_>`, but its trait bounds were not satisfied
|
error[E0599]: the function or associated item `foo` exists for struct `Foo<_>`, but its trait bounds were not satisfied
|
||||||
--> $DIR/issue-69654.rs:17:10
|
--> $DIR/issue-69654.rs:17:10
|
||||||
|
@ -2,7 +2,7 @@ error[E0574]: expected struct, variant or union type, found type parameter `T`
|
|||||||
--> $DIR/lexical-scopes.rs:3:13
|
--> $DIR/lexical-scopes.rs:3:13
|
||||||
|
|
|
|
||||||
LL | fn f<T>() {
|
LL | fn f<T>() {
|
||||||
| - found this type pararmeter
|
| - found this type parameter
|
||||||
LL | let t = T { i: 0 };
|
LL | let t = T { i: 0 };
|
||||||
| ^ not a struct, variant or union type
|
| ^ not a struct, variant or union type
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ error[E0574]: expected struct, variant or union type, found type parameter `Baz`
|
|||||||
--> $DIR/point-at-type-parameter-shadowing-another-type.rs:16:13
|
--> $DIR/point-at-type-parameter-shadowing-another-type.rs:16:13
|
||||||
|
|
|
|
||||||
LL | impl<Baz> Foo<Baz> for Bar {
|
LL | impl<Baz> Foo<Baz> for Bar {
|
||||||
| --- found this type pararmeter
|
| --- found this type parameter
|
||||||
...
|
...
|
||||||
LL | Baz { num } => num,
|
LL | Baz { num } => num,
|
||||||
| ^^^ not a struct, variant or union type
|
| ^^^ not a struct, variant or union type
|
||||||
|
@ -4,7 +4,7 @@ error[E0404]: expected trait, found type parameter `Add`
|
|||||||
LL | impl<T: Clone, Add> Add for Foo<T> {
|
LL | impl<T: Clone, Add> Add for Foo<T> {
|
||||||
| --- ^^^ not a trait
|
| --- ^^^ not a trait
|
||||||
| |
|
| |
|
||||||
| found this type pararmeter
|
| found this type parameter
|
||||||
|
|
|
|
||||||
help: consider importing this trait instead
|
help: consider importing this trait instead
|
||||||
|
|
|
|
||||||
|
Loading…
Reference in New Issue
Block a user