From 7bf47bfd32836dd2db6840b591014a90114245bb Mon Sep 17 00:00:00 2001 From: Jack Huey <31162821+jackh726@users.noreply.github.com> Date: Sat, 16 Apr 2022 12:56:22 -0400 Subject: [PATCH] Remove previously deleted test files --- ...t-argument-cross-crate-mismatch.min.stderr | 29 ------------------- src/test/ui/estr-subtyping.rs | 15 ---------- src/test/ui/estr-subtyping.stderr | 18 ------------ src/test/ui/span/E0057.rs | 6 ---- src/test/ui/span/E0057.stderr | 25 ---------------- 5 files changed, 93 deletions(-) delete mode 100644 src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr delete mode 100644 src/test/ui/estr-subtyping.rs delete mode 100644 src/test/ui/estr-subtyping.stderr delete mode 100644 src/test/ui/span/E0057.rs delete mode 100644 src/test/ui/span/E0057.stderr diff --git a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr b/src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr deleted file mode 100644 index e9854f0b9b5..00000000000 --- a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr +++ /dev/null @@ -1,29 +0,0 @@ -error[E0308]: arguments to this function are incorrect - --> $DIR/const-argument-cross-crate-mismatch.rs:7:41 - | -LL | let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8])); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^----------^ - | | - | expected `[u8; 3]`, found `[u8; 2]` - | -help: provide an argument of the correct type - | -LL | let _ = const_generic_lib::function(({[u8; 3]})); - | ^^^^^^^^^^^ - -error[E0308]: arguments to this function are incorrect - --> $DIR/const-argument-cross-crate-mismatch.rs:9:39 - | -LL | let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------^ - | | - | expected `[u8; 2]`, found `[u8; 3]` - | -help: provide an argument of the correct type - | -LL | let _: const_generic_lib::Alias = ({[u8; 2]}); - | ^^^^^^^^^^^ - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0308`. diff --git a/src/test/ui/estr-subtyping.rs b/src/test/ui/estr-subtyping.rs deleted file mode 100644 index 9c5825fff85..00000000000 --- a/src/test/ui/estr-subtyping.rs +++ /dev/null @@ -1,15 +0,0 @@ -fn wants_uniq(x: String) { } -fn wants_slice(x: &str) { } - -fn has_uniq(x: String) { - wants_uniq(x); - wants_slice(&*x); -} - -fn has_slice(x: &str) { - wants_uniq(x); //~ ERROR mismatched types - wants_slice(x); -} - -fn main() { -} diff --git a/src/test/ui/estr-subtyping.stderr b/src/test/ui/estr-subtyping.stderr deleted file mode 100644 index adebb7d1e63..00000000000 --- a/src/test/ui/estr-subtyping.stderr +++ /dev/null @@ -1,18 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/estr-subtyping.rs:10:15 - | -LL | wants_uniq(x); - | ---------- ^- help: try using a conversion method: `.to_string()` - | | | - | | expected struct `String`, found `&str` - | arguments to this function are incorrect - | -note: function defined here - --> $DIR/estr-subtyping.rs:1:4 - | -LL | fn wants_uniq(x: String) { } - | ^^^^^^^^^^ --------- - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0308`. diff --git a/src/test/ui/span/E0057.rs b/src/test/ui/span/E0057.rs deleted file mode 100644 index 83f941f65b9..00000000000 --- a/src/test/ui/span/E0057.rs +++ /dev/null @@ -1,6 +0,0 @@ -fn main() { - let f = |x| x * 3; - let a = f(); //~ ERROR E0057 - let b = f(4); - let c = f(2, 3); //~ ERROR E0057 -} diff --git a/src/test/ui/span/E0057.stderr b/src/test/ui/span/E0057.stderr deleted file mode 100644 index a151b20f865..00000000000 --- a/src/test/ui/span/E0057.stderr +++ /dev/null @@ -1,25 +0,0 @@ -error[E0057]: this function takes 1 argument but 0 arguments were supplied - --> $DIR/E0057.rs:3:13 - | -LL | let a = f(); - | ^-- an argument is missing - | -help: provide the argument - | -LL | let a = f({_}); - | ~~~~~~ - -error[E0057]: this function takes 1 argument but 2 arguments were supplied - --> $DIR/E0057.rs:5:13 - | -LL | let c = f(2, 3); - | ^ - argument unexpected - | -help: remove the extra argument - | -LL | let c = f(2); - | ~~~~ - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0057`.