From 7e5753752a5703be7d013f3b581045ff8ebcd563 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Fri, 20 Aug 2021 22:57:58 -0700 Subject: [PATCH] Removes .stderr files that were failing CI --- .gitignore | 1 + tests/macro/empty_attr.stderr | 19 ------------------- tests/macro/invalid_data.stderr | 23 ----------------------- tests/macro/invalid_method.stderr | 13 ------------- tests/macro/invalid_result.stderr | 13 ------------- tests/macro/invalid_type.stderr | 19 ------------------- tests/macro/no_attr.stderr | 15 --------------- tests/macro/no_path.stderr | 15 --------------- 8 files changed, 1 insertion(+), 117 deletions(-) delete mode 100644 tests/macro/empty_attr.stderr delete mode 100644 tests/macro/invalid_data.stderr delete mode 100644 tests/macro/invalid_method.stderr delete mode 100644 tests/macro/invalid_result.stderr delete mode 100644 tests/macro/invalid_type.stderr delete mode 100644 tests/macro/no_attr.stderr delete mode 100644 tests/macro/no_path.stderr diff --git a/.gitignore b/.gitignore index dfb86b4..1ab8570 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target /rustify_derive/target +/wip Cargo.lock diff --git a/tests/macro/empty_attr.stderr b/tests/macro/empty_attr.stderr deleted file mode 100644 index abfcb9e..0000000 --- a/tests/macro/empty_attr.stderr +++ /dev/null @@ -1,19 +0,0 @@ -error: Cannot parse attribute as list - --> $DIR/empty_attr.rs:6:3 - | -6 | #[endpoint] - | ^^^^^^^^ - -error: Attribute cannot be empty - --> $DIR/empty_attr.rs:10:3 - | -10 | #[endpoint()] - | ^^^^^^^^ - -warning: unused import: `rustify::endpoint::Endpoint` - --> $DIR/empty_attr.rs:1:5 - | -1 | use rustify::endpoint::Endpoint; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default diff --git a/tests/macro/invalid_data.stderr b/tests/macro/invalid_data.stderr deleted file mode 100644 index 5b8e1a5..0000000 --- a/tests/macro/invalid_data.stderr +++ /dev/null @@ -1,23 +0,0 @@ -error: May only mark one field as the data field - --> $DIR/invalid_data.rs:20:9 - | -20 | pub data_two: Vec, - | ^^^^^^^^ - -error[E0308]: mismatched types - --> $DIR/invalid_data.rs:5:17 - | -5 | #[derive(Debug, Endpoint, Serialize)] - | ^^^^^^^^ expected slice `[u8]`, found struct `std::string::String` - | - = note: expected reference `&[u8]` - found reference `&std::string::String` - = note: this error originates in the derive macro `Endpoint` (in Nightly builds, run with -Z macro-backtrace for more info) - -warning: unused import: `rustify::endpoint::Endpoint` - --> $DIR/invalid_data.rs:1:5 - | -1 | use rustify::endpoint::Endpoint; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default diff --git a/tests/macro/invalid_method.stderr b/tests/macro/invalid_method.stderr deleted file mode 100644 index 053d417..0000000 --- a/tests/macro/invalid_method.stderr +++ /dev/null @@ -1,13 +0,0 @@ -warning: unused import: `rustify::endpoint::Endpoint` - --> $DIR/invalid_method.rs:1:5 - | -1 | use rustify::endpoint::Endpoint; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default - -error[E0599]: no variant or associated item named `TEST` found for enum `RequestMethod` in the current scope - --> $DIR/invalid_method.rs:6:41 - | -6 | #[endpoint(path = "test/path", method = "TEST")] - | ^^^^^^ variant or associated item not found in `RequestMethod` diff --git a/tests/macro/invalid_result.stderr b/tests/macro/invalid_result.stderr deleted file mode 100644 index d8ebfab..0000000 --- a/tests/macro/invalid_result.stderr +++ /dev/null @@ -1,13 +0,0 @@ -error[E0412]: cannot find type `DoesNotExist` in this scope - --> $DIR/invalid_result.rs:6:41 - | -6 | #[endpoint(path = "test/path", result = "DoesNotExist")] - | ^^^^^^^^^^^^^^ not found in this scope - -warning: unused import: `rustify::endpoint::Endpoint` - --> $DIR/invalid_result.rs:1:5 - | -1 | use rustify::endpoint::Endpoint; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default diff --git a/tests/macro/invalid_type.stderr b/tests/macro/invalid_type.stderr deleted file mode 100644 index 0b949c6..0000000 --- a/tests/macro/invalid_type.stderr +++ /dev/null @@ -1,19 +0,0 @@ -warning: unused import: `rustify::endpoint::Endpoint` - --> $DIR/invalid_type.rs:1:5 - | -1 | use rustify::endpoint::Endpoint; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default - -error[E0599]: no variant or associated item named `BAD` found for enum `RequestType` in the current scope - --> $DIR/invalid_type.rs:6:47 - | -6 | #[endpoint(path = "test/path", request_type = "BAD", response_type = "BAD")] - | ^^^^^ variant or associated item not found in `RequestType` - -error[E0599]: no variant or associated item named `BAD` found for enum `ResponseType` in the current scope - --> $DIR/invalid_type.rs:6:70 - | -6 | #[endpoint(path = "test/path", request_type = "BAD", response_type = "BAD")] - | ^^^^^ variant or associated item not found in `ResponseType` diff --git a/tests/macro/no_attr.stderr b/tests/macro/no_attr.stderr deleted file mode 100644 index 802ee90..0000000 --- a/tests/macro/no_attr.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error: Deriving `Endpoint` requires attaching an `endpoint` attribute - --> $DIR/no_attr.rs:5:17 - | -5 | #[derive(Debug, Endpoint, Serialize)] - | ^^^^^^^^ - | - = note: this error originates in the derive macro `Endpoint` (in Nightly builds, run with -Z macro-backtrace for more info) - -warning: unused import: `rustify::endpoint::Endpoint` - --> $DIR/no_attr.rs:1:5 - | -1 | use rustify::endpoint::Endpoint; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default diff --git a/tests/macro/no_path.stderr b/tests/macro/no_path.stderr deleted file mode 100644 index 177a706..0000000 --- a/tests/macro/no_path.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error: Missing required parameter: path - --> $DIR/no_path.rs:5:17 - | -5 | #[derive(Debug, Endpoint, Serialize)] - | ^^^^^^^^ - | - = note: this error originates in the derive macro `Endpoint` (in Nightly builds, run with -Z macro-backtrace for more info) - -warning: unused import: `rustify::endpoint::Endpoint` - --> $DIR/no_path.rs:1:5 - | -1 | use rustify::endpoint::Endpoint; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default