diff options
| author | bors <bors@rust-lang.org> | 2019-04-17 22:24:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-04-17 22:24:11 +0000 |
| commit | 9387927ae2c0d2a283f6c48b705f25d38bb6e692 (patch) | |
| tree | 64cc8bae3fa87a8a581b6d73e3bbee7802167d4d /src/test/ui | |
| parent | 3c3d3c1777041200bb7ed7a65b6562d62899778c (diff) | |
| parent | 42b3cf107d8352d48de35f7caa76946a1b64e962 (diff) | |
Auto merge of #60054 - Centril:rollup-o40xxaa, r=Centril
Rollup of 4 pull requests
Successful merges:
- #59908 (Re-export core::str::{EscapeDebug, EscapeDefault, EscapeUnicode} in std)
- #59984 (Remove collection-specific `with_capacity` documentation from `std::collections`)
- #60036 (Remove nrc from toolstate pings)
- #60037 (Resolve inconsistency in error messages between "parameter" and "variable".)
Failed merges:
r? @ghost
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/bad/bad-type-env-capture.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/const-generics/const-param-from-outer-fn.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0401.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/inner-static-type-parameter.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-3021-c.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-3214.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-5997-enum.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-5997-struct.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/nested-ty-params.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/resolve/resolve-type-param-in-item-in-trait.stderr | 8 | ||||
| -rw-r--r-- | src/test/ui/type/type-arg-out-of-scope.stderr | 4 |
11 files changed, 18 insertions, 18 deletions
diff --git a/src/test/ui/bad/bad-type-env-capture.stderr b/src/test/ui/bad/bad-type-env-capture.stderr index a459c00634a..6f24c0d8699 100644 --- a/src/test/ui/bad/bad-type-env-capture.stderr +++ b/src/test/ui/bad/bad-type-env-capture.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/bad-type-env-capture.rs:2:15 | LL | fn foo<T>() { - | - type variable from outer function + | - type parameter from outer function LL | fn bar(b: T) { } | --- ^ use of generic parameter from outer function | | diff --git a/src/test/ui/const-generics/const-param-from-outer-fn.stderr b/src/test/ui/const-generics/const-param-from-outer-fn.stderr index e37b34fac33..f0b7562f621 100644 --- a/src/test/ui/const-generics/const-param-from-outer-fn.stderr +++ b/src/test/ui/const-generics/const-param-from-outer-fn.stderr @@ -8,7 +8,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/const-param-from-outer-fn.rs:6:9 | LL | fn foo<const X: u32>() { - | - const variable from outer function + | - const parameter from outer function LL | fn bar() -> u32 { | --- try adding a local generic parameter in this method instead LL | X diff --git a/src/test/ui/error-codes/E0401.stderr b/src/test/ui/error-codes/E0401.stderr index 7c54e5b4edb..1d9dfe46722 100644 --- a/src/test/ui/error-codes/E0401.stderr +++ b/src/test/ui/error-codes/E0401.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/E0401.rs:4:39 | LL | fn foo<T>(x: T) { - | - type variable from outer function + | - type parameter from outer function LL | fn bfnr<U, V: Baz<U>, W: Fn()>(y: T) { | --------------------------- ^ use of generic parameter from outer function | | @@ -12,7 +12,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/E0401.rs:9:16 | LL | fn foo<T>(x: T) { - | - type variable from outer function + | - type parameter from outer function ... LL | fn baz<U, | --- try adding a local generic parameter in this method instead diff --git a/src/test/ui/inner-static-type-parameter.stderr b/src/test/ui/inner-static-type-parameter.stderr index 3c14e217aeb..09f79105f6a 100644 --- a/src/test/ui/inner-static-type-parameter.stderr +++ b/src/test/ui/inner-static-type-parameter.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/inner-static-type-parameter.rs:6:19 | LL | fn foo<T>() { - | --- - type variable from outer function + | --- - type parameter from outer function | | | try adding a local generic parameter in this method instead LL | static a: Bar<T> = Bar::What; diff --git a/src/test/ui/issues/issue-3021-c.stderr b/src/test/ui/issues/issue-3021-c.stderr index cef30acd602..8764ac8a856 100644 --- a/src/test/ui/issues/issue-3021-c.stderr +++ b/src/test/ui/issues/issue-3021-c.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/issue-3021-c.rs:4:24 | LL | fn siphash<T>() { - | - type variable from outer function + | - type parameter from outer function ... LL | fn g(&self, x: T) -> T; | - ^ use of generic parameter from outer function @@ -13,7 +13,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/issue-3021-c.rs:4:30 | LL | fn siphash<T>() { - | - type variable from outer function + | - type parameter from outer function ... LL | fn g(&self, x: T) -> T; | - ^ use of generic parameter from outer function diff --git a/src/test/ui/issues/issue-3214.stderr b/src/test/ui/issues/issue-3214.stderr index 9c2585688e9..fa04ec12b74 100644 --- a/src/test/ui/issues/issue-3214.stderr +++ b/src/test/ui/issues/issue-3214.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/issue-3214.rs:3:12 | LL | fn foo<T>() { - | --- - type variable from outer function + | --- - type parameter from outer function | | | try adding a local generic parameter in this method instead LL | struct Foo { diff --git a/src/test/ui/issues/issue-5997-enum.stderr b/src/test/ui/issues/issue-5997-enum.stderr index 5c778143e13..1c58b9c3911 100644 --- a/src/test/ui/issues/issue-5997-enum.stderr +++ b/src/test/ui/issues/issue-5997-enum.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/issue-5997-enum.rs:2:16 | LL | fn f<Z>() -> bool { - | - - type variable from outer function + | - - type parameter from outer function | | | try adding a local generic parameter in this method instead LL | enum E { V(Z) } diff --git a/src/test/ui/issues/issue-5997-struct.stderr b/src/test/ui/issues/issue-5997-struct.stderr index cb1b5146b6c..5b388d16d75 100644 --- a/src/test/ui/issues/issue-5997-struct.stderr +++ b/src/test/ui/issues/issue-5997-struct.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/issue-5997-struct.rs:2:14 | LL | fn f<T>() -> bool { - | - - type variable from outer function + | - - type parameter from outer function | | | try adding a local generic parameter in this method instead LL | struct S(T); diff --git a/src/test/ui/nested-ty-params.stderr b/src/test/ui/nested-ty-params.stderr index 37adeffb9b0..f6741b5e5e8 100644 --- a/src/test/ui/nested-ty-params.stderr +++ b/src/test/ui/nested-ty-params.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/nested-ty-params.rs:3:16 | LL | fn hd<U>(v: Vec<U> ) -> U { - | - type variable from outer function + | - type parameter from outer function LL | fn hd1(w: [U]) -> U { return w[0]; } | --- ^ use of generic parameter from outer function | | @@ -12,7 +12,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/nested-ty-params.rs:3:23 | LL | fn hd<U>(v: Vec<U> ) -> U { - | - type variable from outer function + | - type parameter from outer function LL | fn hd1(w: [U]) -> U { return w[0]; } | --- ^ use of generic parameter from outer function | | diff --git a/src/test/ui/resolve/resolve-type-param-in-item-in-trait.stderr b/src/test/ui/resolve/resolve-type-param-in-item-in-trait.stderr index f6b8abf4057..10a703ee093 100644 --- a/src/test/ui/resolve/resolve-type-param-in-item-in-trait.stderr +++ b/src/test/ui/resolve/resolve-type-param-in-item-in-trait.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/resolve-type-param-in-item-in-trait.rs:8:22 | LL | trait TraitA<A> { - | - type variable from outer function + | - type parameter from outer function LL | fn outer(&self) { | ----- try adding a local generic parameter in this method instead LL | enum Foo<B> { @@ -13,7 +13,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/resolve-type-param-in-item-in-trait.rs:16:23 | LL | trait TraitB<A> { - | - type variable from outer function + | - type parameter from outer function LL | fn outer(&self) { | ----- try adding a local generic parameter in this method instead LL | struct Foo<B>(A); @@ -23,7 +23,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/resolve-type-param-in-item-in-trait.rs:23:28 | LL | trait TraitC<A> { - | - type variable from outer function + | - type parameter from outer function LL | fn outer(&self) { | ----- try adding a local generic parameter in this method instead LL | struct Foo<B> { a: A } @@ -33,7 +33,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/resolve-type-param-in-item-in-trait.rs:30:22 | LL | trait TraitD<A> { - | - type variable from outer function + | - type parameter from outer function LL | fn outer(&self) { LL | fn foo<B>(a: A) { } | ------ ^ use of generic parameter from outer function diff --git a/src/test/ui/type/type-arg-out-of-scope.stderr b/src/test/ui/type/type-arg-out-of-scope.stderr index 645cbb33abe..ea991069c08 100644 --- a/src/test/ui/type/type-arg-out-of-scope.stderr +++ b/src/test/ui/type/type-arg-out-of-scope.stderr @@ -2,7 +2,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/type-arg-out-of-scope.rs:3:25 | LL | fn foo<T>(x: T) { - | - type variable from outer function + | - type parameter from outer function LL | fn bar(f: Box<FnMut(T) -> T>) { } | --- ^ use of generic parameter from outer function | | @@ -12,7 +12,7 @@ error[E0401]: can't use generic parameters from outer function --> $DIR/type-arg-out-of-scope.rs:3:31 | LL | fn foo<T>(x: T) { - | - type variable from outer function + | - type parameter from outer function LL | fn bar(f: Box<FnMut(T) -> T>) { } | --- ^ use of generic parameter from outer function | | |
