diff options
| author | bors <bors@rust-lang.org> | 2018-08-25 13:00:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-25 13:00:20 +0000 |
| commit | 545f22340f72ee0efaf6463efb43a2840e3d35db (patch) | |
| tree | e114bcc012808faa5d0355d596b3d4307eb8c1a2 /src/test/ui/error-codes | |
| parent | af2be23fd156fe93ca4db2f2a0f047f1ad5c6533 (diff) | |
| parent | 79afc6e9e880244bf841ae85d02505b257a28343 (diff) | |
| download | rust-545f22340f72ee0efaf6463efb43a2840e3d35db.tar.gz rust-545f22340f72ee0efaf6463efb43a2840e3d35db.zip | |
Auto merge of #53584 - mcr431:Fix-#53525, r=varkor
Fix #53525 - Unify E0243, E0244, E0087, E0088, E0089, and E0090 into E0107 Fix #53525 This pr merges all errors related to too many or too few generic arguments in types and functions. E0243, E0244, E0087, E0088, E0089, E0090 errors will no longer be emitted and E0107 will be used instead.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0087.rs | 18 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0087.stderr | 15 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0088.rs | 17 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0088.stderr | 15 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0089.rs | 15 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0089.stderr | 9 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0090.rs | 15 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0090.stderr | 9 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0243.rs | 16 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0243.stderr | 9 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0244.rs | 17 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0244.stderr | 9 |
12 files changed, 0 insertions, 164 deletions
diff --git a/src/test/ui/error-codes/E0087.rs b/src/test/ui/error-codes/E0087.rs deleted file mode 100644 index bea76f34220..00000000000 --- a/src/test/ui/error-codes/E0087.rs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn foo() {} -fn bar<T>() {} - -fn main() { - foo::<f64>(); //~ ERROR wrong number of type arguments: expected 0, found 1 [E0087] - - bar::<f64, u64>(); //~ ERROR wrong number of type arguments: expected 1, found 2 [E0087] -} diff --git a/src/test/ui/error-codes/E0087.stderr b/src/test/ui/error-codes/E0087.stderr deleted file mode 100644 index a07f1bbf39a..00000000000 --- a/src/test/ui/error-codes/E0087.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0087]: wrong number of type arguments: expected 0, found 1 - --> $DIR/E0087.rs:15:11 - | -LL | foo::<f64>(); //~ ERROR wrong number of type arguments: expected 0, found 1 [E0087] - | ^^^ unexpected type argument - -error[E0087]: wrong number of type arguments: expected 1, found 2 - --> $DIR/E0087.rs:17:16 - | -LL | bar::<f64, u64>(); //~ ERROR wrong number of type arguments: expected 1, found 2 [E0087] - | ^^^ unexpected type argument - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0087`. diff --git a/src/test/ui/error-codes/E0088.rs b/src/test/ui/error-codes/E0088.rs deleted file mode 100644 index db84a4edc48..00000000000 --- a/src/test/ui/error-codes/E0088.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn f() {} -fn g<'a>() -> &'a u8 { loop {} } - -fn main() { - f::<'static>(); //~ ERROR E0088 - g::<'static, 'static>(); //~ ERROR E0088 -} diff --git a/src/test/ui/error-codes/E0088.stderr b/src/test/ui/error-codes/E0088.stderr deleted file mode 100644 index 6b956023e05..00000000000 --- a/src/test/ui/error-codes/E0088.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0088]: wrong number of lifetime arguments: expected 0, found 1 - --> $DIR/E0088.rs:15:9 - | -LL | f::<'static>(); //~ ERROR E0088 - | ^^^^^^^ unexpected lifetime argument - -error[E0088]: wrong number of lifetime arguments: expected 1, found 2 - --> $DIR/E0088.rs:16:18 - | -LL | g::<'static, 'static>(); //~ ERROR E0088 - | ^^^^^^^ unexpected lifetime argument - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0088`. diff --git a/src/test/ui/error-codes/E0089.rs b/src/test/ui/error-codes/E0089.rs deleted file mode 100644 index 4e6196a7b89..00000000000 --- a/src/test/ui/error-codes/E0089.rs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn foo<T, U>() {} - -fn main() { - foo::<f64>(); //~ ERROR wrong number of type arguments: expected 2, found 1 [E0089] -} diff --git a/src/test/ui/error-codes/E0089.stderr b/src/test/ui/error-codes/E0089.stderr deleted file mode 100644 index f79c478b733..00000000000 --- a/src/test/ui/error-codes/E0089.stderr +++ /dev/null @@ -1,9 +0,0 @@ -error[E0089]: wrong number of type arguments: expected 2, found 1 - --> $DIR/E0089.rs:14:5 - | -LL | foo::<f64>(); //~ ERROR wrong number of type arguments: expected 2, found 1 [E0089] - | ^^^^^^^^^^ expected 2 type arguments - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0089`. diff --git a/src/test/ui/error-codes/E0090.rs b/src/test/ui/error-codes/E0090.rs deleted file mode 100644 index 26be4c12f07..00000000000 --- a/src/test/ui/error-codes/E0090.rs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn foo<'a: 'b, 'b: 'a>() {} - -fn main() { - foo::<'static>(); //~ ERROR wrong number of lifetime arguments: expected 2, found 1 [E0090] -} diff --git a/src/test/ui/error-codes/E0090.stderr b/src/test/ui/error-codes/E0090.stderr deleted file mode 100644 index 9029b6c2708..00000000000 --- a/src/test/ui/error-codes/E0090.stderr +++ /dev/null @@ -1,9 +0,0 @@ -error[E0090]: wrong number of lifetime arguments: expected 2, found 1 - --> $DIR/E0090.rs:14:5 - | -LL | foo::<'static>(); //~ ERROR wrong number of lifetime arguments: expected 2, found 1 [E0090] - | ^^^^^^^^^^^^^^ expected 2 lifetime arguments - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0090`. diff --git a/src/test/ui/error-codes/E0243.rs b/src/test/ui/error-codes/E0243.rs deleted file mode 100644 index 615ce0b5d42..00000000000 --- a/src/test/ui/error-codes/E0243.rs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -struct Foo<T> { x: T } -struct Bar { x: Foo } - //~^ ERROR wrong number of type arguments: expected 1, found 0 [E0243] - -fn main() { -} diff --git a/src/test/ui/error-codes/E0243.stderr b/src/test/ui/error-codes/E0243.stderr deleted file mode 100644 index 0477d1b844a..00000000000 --- a/src/test/ui/error-codes/E0243.stderr +++ /dev/null @@ -1,9 +0,0 @@ -error[E0243]: wrong number of type arguments: expected 1, found 0 - --> $DIR/E0243.rs:12:17 - | -LL | struct Bar { x: Foo } - | ^^^ expected 1 type argument - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0243`. diff --git a/src/test/ui/error-codes/E0244.rs b/src/test/ui/error-codes/E0244.rs deleted file mode 100644 index 9a78b3139d0..00000000000 --- a/src/test/ui/error-codes/E0244.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -struct Foo { x: bool } -struct Bar<S, T> { x: Foo<S, T> } - //~^ ERROR wrong number of type arguments: expected 0, found 2 [E0244] - - -fn main() { -} diff --git a/src/test/ui/error-codes/E0244.stderr b/src/test/ui/error-codes/E0244.stderr deleted file mode 100644 index 87f063c604f..00000000000 --- a/src/test/ui/error-codes/E0244.stderr +++ /dev/null @@ -1,9 +0,0 @@ -error[E0244]: wrong number of type arguments: expected 0, found 2 - --> $DIR/E0244.rs:12:23 - | -LL | struct Bar<S, T> { x: Foo<S, T> } - | ^^^^^^^^^ 2 unexpected type arguments - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0244`. |
