summaryrefslogtreecommitdiff
path: root/vendor/thiserror/tests/ui
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-15 16:37:08 -0600
committermo khan <mo@mokhan.ca>2025-07-17 16:30:22 -0600
commit45df4d0d9b577fecee798d672695fe24ff57fb1b (patch)
tree1b99bf645035b58e0d6db08c7a83521f41f7a75b /vendor/thiserror/tests/ui
parentf94f79608393d4ab127db63cc41668445ef6b243 (diff)
feat: migrate from Cedar to SpiceDB authorization system
This is a major architectural change that replaces the Cedar policy-based authorization system with SpiceDB's relation-based authorization. Key changes: - Migrate from Rust to Go implementation - Replace Cedar policies with SpiceDB schema and relationships - Switch from envoy `ext_authz` with Cedar to SpiceDB permission checks - Update build system and dependencies for Go ecosystem - Maintain Envoy integration for external authorization This change enables more flexible permission modeling through SpiceDB's Google Zanzibar inspired relation-based system, supporting complex hierarchical permissions that were difficult to express in Cedar. Breaking change: Existing Cedar policies and Rust-based configuration will no longer work and need to be migrated to SpiceDB schema.
Diffstat (limited to 'vendor/thiserror/tests/ui')
-rw-r--r--vendor/thiserror/tests/ui/bad-field-attr.rs7
-rw-r--r--vendor/thiserror/tests/ui/bad-field-attr.stderr5
-rw-r--r--vendor/thiserror/tests/ui/concat-display.rs15
-rw-r--r--vendor/thiserror/tests/ui/concat-display.stderr10
-rw-r--r--vendor/thiserror/tests/ui/display-underscore.rs7
-rw-r--r--vendor/thiserror/tests/ui/display-underscore.stderr7
-rw-r--r--vendor/thiserror/tests/ui/duplicate-enum-source.rs13
-rw-r--r--vendor/thiserror/tests/ui/duplicate-enum-source.stderr5
-rw-r--r--vendor/thiserror/tests/ui/duplicate-fmt.rs23
-rw-r--r--vendor/thiserror/tests/ui/duplicate-fmt.stderr23
-rw-r--r--vendor/thiserror/tests/ui/duplicate-struct-source.rs11
-rw-r--r--vendor/thiserror/tests/ui/duplicate-struct-source.stderr5
-rw-r--r--vendor/thiserror/tests/ui/duplicate-transparent.rs8
-rw-r--r--vendor/thiserror/tests/ui/duplicate-transparent.stderr5
-rw-r--r--vendor/thiserror/tests/ui/expression-fallback.rs7
-rw-r--r--vendor/thiserror/tests/ui/expression-fallback.stderr19
-rw-r--r--vendor/thiserror/tests/ui/fallback-impl-with-display.rs14
-rw-r--r--vendor/thiserror/tests/ui/fallback-impl-with-display.stderr16
-rw-r--r--vendor/thiserror/tests/ui/from-backtrace-backtrace.rs15
-rw-r--r--vendor/thiserror/tests/ui/from-backtrace-backtrace.stderr5
-rw-r--r--vendor/thiserror/tests/ui/from-not-source.rs11
-rw-r--r--vendor/thiserror/tests/ui/from-not-source.stderr5
-rw-r--r--vendor/thiserror/tests/ui/invalid-input-impl-anyway.rs11
-rw-r--r--vendor/thiserror/tests/ui/invalid-input-impl-anyway.stderr5
-rw-r--r--vendor/thiserror/tests/ui/lifetime.rs24
-rw-r--r--vendor/thiserror/tests/ui/lifetime.stderr11
-rw-r--r--vendor/thiserror/tests/ui/missing-display.rs9
-rw-r--r--vendor/thiserror/tests/ui/missing-display.stderr16
-rw-r--r--vendor/thiserror/tests/ui/missing-fmt.rs10
-rw-r--r--vendor/thiserror/tests/ui/missing-fmt.stderr5
-rw-r--r--vendor/thiserror/tests/ui/no-display.rs18
-rw-r--r--vendor/thiserror/tests/ui/no-display.stderr46
-rw-r--r--vendor/thiserror/tests/ui/numbered-positional-tuple.rs7
-rw-r--r--vendor/thiserror/tests/ui/numbered-positional-tuple.stderr5
-rw-r--r--vendor/thiserror/tests/ui/raw-identifier.rs12
-rw-r--r--vendor/thiserror/tests/ui/raw-identifier.stderr21
-rw-r--r--vendor/thiserror/tests/ui/same-from-type.rs11
-rw-r--r--vendor/thiserror/tests/ui/same-from-type.stderr8
-rw-r--r--vendor/thiserror/tests/ui/source-enum-not-error.rs12
-rw-r--r--vendor/thiserror/tests/ui/source-enum-not-error.stderr22
-rw-r--r--vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.rs12
-rw-r--r--vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.stderr22
-rw-r--r--vendor/thiserror/tests/ui/source-struct-not-error.rs12
-rw-r--r--vendor/thiserror/tests/ui/source-struct-not-error.stderr20
-rw-r--r--vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.rs10
-rw-r--r--vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.stderr20
-rw-r--r--vendor/thiserror/tests/ui/struct-with-fmt.rs7
-rw-r--r--vendor/thiserror/tests/ui/struct-with-fmt.stderr5
-rw-r--r--vendor/thiserror/tests/ui/transparent-display.rs8
-rw-r--r--vendor/thiserror/tests/ui/transparent-display.stderr5
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-many.rs9
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-many.stderr6
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-not-error.rs9
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-not-error.stderr20
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-source.rs9
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-source.stderr5
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.rs9
-rw-r--r--vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.stderr20
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-many.rs10
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-many.stderr5
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-not-error.rs9
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-not-error.stderr18
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-source.rs7
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-source.stderr5
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.rs7
-rw-r--r--vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.stderr18
-rw-r--r--vendor/thiserror/tests/ui/unconditional-recursion.rs9
-rw-r--r--vendor/thiserror/tests/ui/unconditional-recursion.stderr21
-rw-r--r--vendor/thiserror/tests/ui/unexpected-field-fmt.rs11
-rw-r--r--vendor/thiserror/tests/ui/unexpected-field-fmt.stderr5
-rw-r--r--vendor/thiserror/tests/ui/unexpected-struct-source.rs7
-rw-r--r--vendor/thiserror/tests/ui/unexpected-struct-source.stderr5
-rw-r--r--vendor/thiserror/tests/ui/union.rs9
-rw-r--r--vendor/thiserror/tests/ui/union.stderr8
74 files changed, 0 insertions, 851 deletions
diff --git a/vendor/thiserror/tests/ui/bad-field-attr.rs b/vendor/thiserror/tests/ui/bad-field-attr.rs
deleted file mode 100644
index d5429b2b..00000000
--- a/vendor/thiserror/tests/ui/bad-field-attr.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(transparent)]
-pub struct Error(#[error(transparent)] std::io::Error);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/bad-field-attr.stderr b/vendor/thiserror/tests/ui/bad-field-attr.stderr
deleted file mode 100644
index 5fb57441..00000000
--- a/vendor/thiserror/tests/ui/bad-field-attr.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: #[error(transparent)] needs to go outside the enum or struct, not on an individual field
- --> tests/ui/bad-field-attr.rs:5:18
- |
-5 | pub struct Error(#[error(transparent)] std::io::Error);
- | ^^^^^^^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/concat-display.rs b/vendor/thiserror/tests/ui/concat-display.rs
deleted file mode 100644
index 8b53cc0c..00000000
--- a/vendor/thiserror/tests/ui/concat-display.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-use thiserror::Error;
-
-macro_rules! error_type {
- ($name:ident, $what:expr) => {
- // Use #[error("invalid {}", $what)] instead.
-
- #[derive(Error, Debug)]
- #[error(concat!("invalid ", $what))]
- pub struct $name;
- };
-}
-
-error_type!(Error, "foo");
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/concat-display.stderr b/vendor/thiserror/tests/ui/concat-display.stderr
deleted file mode 100644
index 9255488f..00000000
--- a/vendor/thiserror/tests/ui/concat-display.stderr
+++ /dev/null
@@ -1,10 +0,0 @@
-error: expected one of: string literal, `transparent`, `fmt`
- --> tests/ui/concat-display.rs:8:17
- |
-8 | #[error(concat!("invalid ", $what))]
- | ^^^^^^
-...
-13 | error_type!(Error, "foo");
- | ------------------------- in this macro invocation
- |
- = note: this error originates in the macro `error_type` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/thiserror/tests/ui/display-underscore.rs b/vendor/thiserror/tests/ui/display-underscore.rs
deleted file mode 100644
index 335614bd..00000000
--- a/vendor/thiserror/tests/ui/display-underscore.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("{_}")]
-pub struct Error;
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/display-underscore.stderr b/vendor/thiserror/tests/ui/display-underscore.stderr
deleted file mode 100644
index 36882b99..00000000
--- a/vendor/thiserror/tests/ui/display-underscore.stderr
+++ /dev/null
@@ -1,7 +0,0 @@
-error: invalid format string: invalid argument name `_`
- --> tests/ui/display-underscore.rs:4:11
- |
-4 | #[error("{_}")]
- | ^ invalid argument name in format string
- |
- = note: argument name cannot be a single underscore
diff --git a/vendor/thiserror/tests/ui/duplicate-enum-source.rs b/vendor/thiserror/tests/ui/duplicate-enum-source.rs
deleted file mode 100644
index 15e579f8..00000000
--- a/vendor/thiserror/tests/ui/duplicate-enum-source.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum ErrorEnum {
- Confusing {
- #[source]
- a: std::io::Error,
- #[source]
- b: anyhow::Error,
- },
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/duplicate-enum-source.stderr b/vendor/thiserror/tests/ui/duplicate-enum-source.stderr
deleted file mode 100644
index 4a4b2d39..00000000
--- a/vendor/thiserror/tests/ui/duplicate-enum-source.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: duplicate #[source] attribute
- --> tests/ui/duplicate-enum-source.rs:8:9
- |
-8 | #[source]
- | ^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/duplicate-fmt.rs b/vendor/thiserror/tests/ui/duplicate-fmt.rs
deleted file mode 100644
index 32f7a23d..00000000
--- a/vendor/thiserror/tests/ui/duplicate-fmt.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("...")]
-#[error("...")]
-pub struct Error;
-
-#[derive(Error, Debug)]
-#[error(fmt = core::fmt::Octal::fmt)]
-#[error(fmt = core::fmt::LowerHex::fmt)]
-pub enum FmtFmt {}
-
-#[derive(Error, Debug)]
-#[error(fmt = core::fmt::Octal::fmt)]
-#[error(transparent)]
-pub enum FmtTransparent {}
-
-#[derive(Error, Debug)]
-#[error(fmt = core::fmt::Octal::fmt)]
-#[error("...")]
-pub enum FmtDisplay {}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/duplicate-fmt.stderr b/vendor/thiserror/tests/ui/duplicate-fmt.stderr
deleted file mode 100644
index a6c99322..00000000
--- a/vendor/thiserror/tests/ui/duplicate-fmt.stderr
+++ /dev/null
@@ -1,23 +0,0 @@
-error: only one #[error(...)] attribute is allowed
- --> tests/ui/duplicate-fmt.rs:5:1
- |
-5 | #[error("...")]
- | ^^^^^^^^^^^^^^^
-
-error: duplicate #[error(fmt = ...)] attribute
- --> tests/ui/duplicate-fmt.rs:10:1
- |
-10 | #[error(fmt = core::fmt::LowerHex::fmt)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-error: cannot have both #[error(transparent)] and #[error(fmt = ...)]
- --> tests/ui/duplicate-fmt.rs:14:1
- |
-14 | #[error(fmt = core::fmt::Octal::fmt)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-error: cannot have both #[error(fmt = ...)] and a format arguments attribute
- --> tests/ui/duplicate-fmt.rs:20:1
- |
-20 | #[error("...")]
- | ^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/duplicate-struct-source.rs b/vendor/thiserror/tests/ui/duplicate-struct-source.rs
deleted file mode 100644
index 569df8dd..00000000
--- a/vendor/thiserror/tests/ui/duplicate-struct-source.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub struct ErrorStruct {
- #[source]
- a: std::io::Error,
- #[source]
- b: anyhow::Error,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/duplicate-struct-source.stderr b/vendor/thiserror/tests/ui/duplicate-struct-source.stderr
deleted file mode 100644
index c8de5747..00000000
--- a/vendor/thiserror/tests/ui/duplicate-struct-source.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: duplicate #[source] attribute
- --> tests/ui/duplicate-struct-source.rs:7:5
- |
-7 | #[source]
- | ^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/duplicate-transparent.rs b/vendor/thiserror/tests/ui/duplicate-transparent.rs
deleted file mode 100644
index 49c0e466..00000000
--- a/vendor/thiserror/tests/ui/duplicate-transparent.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(transparent)]
-#[error(transparent)]
-pub struct Error(anyhow::Error);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/duplicate-transparent.stderr b/vendor/thiserror/tests/ui/duplicate-transparent.stderr
deleted file mode 100644
index a8308790..00000000
--- a/vendor/thiserror/tests/ui/duplicate-transparent.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: duplicate #[error(transparent)] attribute
- --> tests/ui/duplicate-transparent.rs:5:1
- |
-5 | #[error(transparent)]
- | ^^^^^^^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/expression-fallback.rs b/vendor/thiserror/tests/ui/expression-fallback.rs
deleted file mode 100644
index 72691295..00000000
--- a/vendor/thiserror/tests/ui/expression-fallback.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("".yellow)]
-pub struct ArgError;
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/expression-fallback.stderr b/vendor/thiserror/tests/ui/expression-fallback.stderr
deleted file mode 100644
index 5c9f2157..00000000
--- a/vendor/thiserror/tests/ui/expression-fallback.stderr
+++ /dev/null
@@ -1,19 +0,0 @@
-error: expected `,`, found `.`
- --> tests/ui/expression-fallback.rs:4:11
- |
-4 | #[error("".yellow)]
- | ^ expected `,`
-
-error: argument never used
- --> tests/ui/expression-fallback.rs:4:12
- |
-4 | #[error("".yellow)]
- | -- ^^^^^^ argument never used
- | |
- | formatting specifier missing
-
-error[E0425]: cannot find value `yellow` in this scope
- --> tests/ui/expression-fallback.rs:4:12
- |
-4 | #[error("".yellow)]
- | ^^^^^^ not found in this scope
diff --git a/vendor/thiserror/tests/ui/fallback-impl-with-display.rs b/vendor/thiserror/tests/ui/fallback-impl-with-display.rs
deleted file mode 100644
index 23dcf287..00000000
--- a/vendor/thiserror/tests/ui/fallback-impl-with-display.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-use core::fmt::{self, Display};
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error]
-pub struct MyError;
-
-impl Display for MyError {
- fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
- unimplemented!()
- }
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/fallback-impl-with-display.stderr b/vendor/thiserror/tests/ui/fallback-impl-with-display.stderr
deleted file mode 100644
index 6bd37307..00000000
--- a/vendor/thiserror/tests/ui/fallback-impl-with-display.stderr
+++ /dev/null
@@ -1,16 +0,0 @@
-error: expected attribute arguments in parentheses: #[error(...)]
- --> tests/ui/fallback-impl-with-display.rs:5:3
- |
-5 | #[error]
- | ^^^^^
-
-error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `MyError`
- --> tests/ui/fallback-impl-with-display.rs:4:10
- |
-4 | #[derive(Error, Debug)]
- | ^^^^^ conflicting implementation for `MyError`
-...
-8 | impl Display for MyError {
- | ------------------------ first implementation here
- |
- = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/thiserror/tests/ui/from-backtrace-backtrace.rs b/vendor/thiserror/tests/ui/from-backtrace-backtrace.rs
deleted file mode 100644
index 3b781ac4..00000000
--- a/vendor/thiserror/tests/ui/from-backtrace-backtrace.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// https://github.com/dtolnay/thiserror/issues/163
-
-use std::backtrace::Backtrace;
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("...")]
-pub struct Error(
- #[from]
- #[backtrace]
- std::io::Error,
- Backtrace,
-);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/from-backtrace-backtrace.stderr b/vendor/thiserror/tests/ui/from-backtrace-backtrace.stderr
deleted file mode 100644
index 5c0b9a3b..00000000
--- a/vendor/thiserror/tests/ui/from-backtrace-backtrace.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: deriving From requires no fields other than source and backtrace
- --> tests/ui/from-backtrace-backtrace.rs:9:5
- |
-9 | #[from]
- | ^^^^^^^
diff --git a/vendor/thiserror/tests/ui/from-not-source.rs b/vendor/thiserror/tests/ui/from-not-source.rs
deleted file mode 100644
index ad728670..00000000
--- a/vendor/thiserror/tests/ui/from-not-source.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub struct Error {
- #[source]
- source: std::io::Error,
- #[from]
- other: anyhow::Error,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/from-not-source.stderr b/vendor/thiserror/tests/ui/from-not-source.stderr
deleted file mode 100644
index 97136017..00000000
--- a/vendor/thiserror/tests/ui/from-not-source.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: #[from] is only supported on the source field, not any other field
- --> tests/ui/from-not-source.rs:7:5
- |
-7 | #[from]
- | ^^^^^^^
diff --git a/vendor/thiserror/tests/ui/invalid-input-impl-anyway.rs b/vendor/thiserror/tests/ui/invalid-input-impl-anyway.rs
deleted file mode 100644
index 0a0bcbee..00000000
--- a/vendor/thiserror/tests/ui/invalid-input-impl-anyway.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error]
-pub struct MyError;
-
-fn main() {
- // No error on the following line. Thiserror emits an Error impl despite the
- // bad attribute.
- _ = &MyError as &dyn std::error::Error;
-}
diff --git a/vendor/thiserror/tests/ui/invalid-input-impl-anyway.stderr b/vendor/thiserror/tests/ui/invalid-input-impl-anyway.stderr
deleted file mode 100644
index b98c31e9..00000000
--- a/vendor/thiserror/tests/ui/invalid-input-impl-anyway.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: expected attribute arguments in parentheses: #[error(...)]
- --> tests/ui/invalid-input-impl-anyway.rs:4:3
- |
-4 | #[error]
- | ^^^^^
diff --git a/vendor/thiserror/tests/ui/lifetime.rs b/vendor/thiserror/tests/ui/lifetime.rs
deleted file mode 100644
index a82909d6..00000000
--- a/vendor/thiserror/tests/ui/lifetime.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-use core::fmt::Debug;
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("error")]
-struct Error<'a>(#[from] Inner<'a>);
-
-#[derive(Error, Debug)]
-#[error("{0}")]
-struct Inner<'a>(&'a str);
-
-#[derive(Error, Debug)]
-enum Enum<'a> {
- #[error("error")]
- Foo(#[from] Generic<&'a str>),
-}
-
-#[derive(Error, Debug)]
-#[error("{0:?}")]
-struct Generic<T: Debug>(T);
-
-fn main() -> Result<(), Error<'static>> {
- Err(Error(Inner("some text")))
-}
diff --git a/vendor/thiserror/tests/ui/lifetime.stderr b/vendor/thiserror/tests/ui/lifetime.stderr
deleted file mode 100644
index 8b58136e..00000000
--- a/vendor/thiserror/tests/ui/lifetime.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error: non-static lifetimes are not allowed in the source of an error, because std::error::Error requires the source is dyn Error + 'static
- --> tests/ui/lifetime.rs:6:26
- |
-6 | struct Error<'a>(#[from] Inner<'a>);
- | ^^^^^^^^^
-
-error: non-static lifetimes are not allowed in the source of an error, because std::error::Error requires the source is dyn Error + 'static
- --> tests/ui/lifetime.rs:15:17
- |
-15 | Foo(#[from] Generic<&'a str>),
- | ^^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/missing-display.rs b/vendor/thiserror/tests/ui/missing-display.rs
deleted file mode 100644
index 31e23fe6..00000000
--- a/vendor/thiserror/tests/ui/missing-display.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum MyError {
- First,
- Second,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/missing-display.stderr b/vendor/thiserror/tests/ui/missing-display.stderr
deleted file mode 100644
index f7a044bd..00000000
--- a/vendor/thiserror/tests/ui/missing-display.stderr
+++ /dev/null
@@ -1,16 +0,0 @@
-error[E0277]: `MyError` doesn't implement `std::fmt::Display`
- --> tests/ui/missing-display.rs:4:10
- |
-3 | #[derive(Error, Debug)]
- | ----- in this derive macro expansion
-4 | pub enum MyError {
- | ^^^^^^^ `MyError` cannot be formatted with the default formatter
- |
- = help: the trait `std::fmt::Display` is not implemented for `MyError`
- = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
-note: required by a bound in `std::error::Error`
- --> $RUST/core/src/error.rs
- |
- | pub trait Error: Debug + Display {
- | ^^^^^^^ required by this bound in `Error`
- = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/thiserror/tests/ui/missing-fmt.rs b/vendor/thiserror/tests/ui/missing-fmt.rs
deleted file mode 100644
index d52fbdf0..00000000
--- a/vendor/thiserror/tests/ui/missing-fmt.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum Error {
- #[error("...")]
- A(usize),
- B(usize),
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/missing-fmt.stderr b/vendor/thiserror/tests/ui/missing-fmt.stderr
deleted file mode 100644
index c0be3735..00000000
--- a/vendor/thiserror/tests/ui/missing-fmt.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: missing #[error("...")] display attribute
- --> tests/ui/missing-fmt.rs:7:5
- |
-7 | B(usize),
- | ^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/no-display.rs b/vendor/thiserror/tests/ui/no-display.rs
deleted file mode 100644
index d804e005..00000000
--- a/vendor/thiserror/tests/ui/no-display.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-use thiserror::Error;
-
-#[derive(Debug)]
-struct NoDisplay;
-
-#[derive(Error, Debug)]
-#[error("thread: {thread}")]
-pub struct Error {
- thread: NoDisplay,
-}
-
-#[derive(Error, Debug)]
-#[error("thread: {thread:o}")]
-pub struct ErrorOctal {
- thread: NoDisplay,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/no-display.stderr b/vendor/thiserror/tests/ui/no-display.stderr
deleted file mode 100644
index 8f35b82b..00000000
--- a/vendor/thiserror/tests/ui/no-display.stderr
+++ /dev/null
@@ -1,46 +0,0 @@
-error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its trait bounds were not satisfied
- --> tests/ui/no-display.rs:7:9
- |
-4 | struct NoDisplay;
- | ---------------- doesn't satisfy `NoDisplay: std::fmt::Display`
-...
-7 | #[error("thread: {thread}")]
- | ^^^^^^^^^^^^^^^^^^ method cannot be called on `&NoDisplay` due to unsatisfied trait bounds
- |
- = note: the following trait bounds were not satisfied:
- `NoDisplay: std::fmt::Display`
- which is required by `&NoDisplay: AsDisplay<'_>`
-note: the trait `std::fmt::Display` must be implemented
- --> $RUST/core/src/fmt/mod.rs
- |
- | pub trait Display {
- | ^^^^^^^^^^^^^^^^^
- = help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `as_display`, perhaps you need to implement it:
- candidate #1: `AsDisplay`
-
-error[E0277]: the trait bound `NoDisplay: Octal` is not satisfied
- --> tests/ui/no-display.rs:13:9
- |
-12 | #[derive(Error, Debug)]
- | ----- in this derive macro expansion
-13 | #[error("thread: {thread:o}")]
- | ^^^^^^^^^^^^^^^^^^^^ the trait `Octal` is not implemented for `NoDisplay`
- |
- = help: the following other types implement trait `Octal`:
- &T
- &mut T
- NonZero<T>
- Saturating<T>
- Wrapping<T>
- i128
- i16
- i32
- and $N others
- = note: required for `&NoDisplay` to implement `Octal`
-note: required by a bound in `core::fmt::rt::Argument::<'_>::new_octal`
- --> $RUST/core/src/fmt/rt.rs
- |
- | pub fn new_octal<T: Octal>(x: &T) -> Argument<'_> {
- | ^^^^^ required by this bound in `Argument::<'_>::new_octal`
- = note: this error originates in the macro `$crate::format_args` which comes from the expansion of the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/thiserror/tests/ui/numbered-positional-tuple.rs b/vendor/thiserror/tests/ui/numbered-positional-tuple.rs
deleted file mode 100644
index 6deb6582..00000000
--- a/vendor/thiserror/tests/ui/numbered-positional-tuple.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::MAX)]
-pub struct Error(u32);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/numbered-positional-tuple.stderr b/vendor/thiserror/tests/ui/numbered-positional-tuple.stderr
deleted file mode 100644
index ab133717..00000000
--- a/vendor/thiserror/tests/ui/numbered-positional-tuple.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: ambiguous reference to positional arguments by number in a tuple struct; change this to a named argument
- --> tests/ui/numbered-positional-tuple.rs:4:61
- |
-4 | #[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::MAX)]
- | ^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/raw-identifier.rs b/vendor/thiserror/tests/ui/raw-identifier.rs
deleted file mode 100644
index e7e66d05..00000000
--- a/vendor/thiserror/tests/ui/raw-identifier.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("error: {r#fn}")]
-pub struct Error {
- r#fn: &'static str,
-}
-
-fn main() {
- let r#fn = "...";
- let _ = format!("error: {r#fn}");
-}
diff --git a/vendor/thiserror/tests/ui/raw-identifier.stderr b/vendor/thiserror/tests/ui/raw-identifier.stderr
deleted file mode 100644
index a3ce94da..00000000
--- a/vendor/thiserror/tests/ui/raw-identifier.stderr
+++ /dev/null
@@ -1,21 +0,0 @@
-error: invalid format string: raw identifiers are not supported
- --> tests/ui/raw-identifier.rs:4:18
- |
-4 | #[error("error: {r#fn}")]
- | --^^
- | |
- | raw identifier used here in format string
- | help: remove the `r#`
- |
- = note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
-
-error: invalid format string: raw identifiers are not supported
- --> tests/ui/raw-identifier.rs:11:30
- |
-11 | let _ = format!("error: {r#fn}");
- | --^^
- | |
- | raw identifier used here in format string
- | help: remove the `r#`
- |
- = note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
diff --git a/vendor/thiserror/tests/ui/same-from-type.rs b/vendor/thiserror/tests/ui/same-from-type.rs
deleted file mode 100644
index 0ebdf451..00000000
--- a/vendor/thiserror/tests/ui/same-from-type.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum Error {
- #[error("failed to open")]
- OpenFile(#[from] std::io::Error),
- #[error("failed to close")]
- CloseFile(#[from] std::io::Error),
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/same-from-type.stderr b/vendor/thiserror/tests/ui/same-from-type.stderr
deleted file mode 100644
index a6551632..00000000
--- a/vendor/thiserror/tests/ui/same-from-type.stderr
+++ /dev/null
@@ -1,8 +0,0 @@
-error[E0119]: conflicting implementations of trait `From<std::io::Error>` for type `Error`
- --> tests/ui/same-from-type.rs:8:15
- |
-6 | OpenFile(#[from] std::io::Error),
- | ------- first implementation here
-7 | #[error("failed to close")]
-8 | CloseFile(#[from] std::io::Error),
- | ^^^^^^^ conflicting implementation for `Error`
diff --git a/vendor/thiserror/tests/ui/source-enum-not-error.rs b/vendor/thiserror/tests/ui/source-enum-not-error.rs
deleted file mode 100644
index dae2285b..00000000
--- a/vendor/thiserror/tests/ui/source-enum-not-error.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-use thiserror::Error;
-
-#[derive(Debug)]
-pub struct NotError;
-
-#[derive(Error, Debug)]
-#[error("...")]
-pub enum ErrorEnum {
- Broken { source: NotError },
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/source-enum-not-error.stderr b/vendor/thiserror/tests/ui/source-enum-not-error.stderr
deleted file mode 100644
index 649d77df..00000000
--- a/vendor/thiserror/tests/ui/source-enum-not-error.stderr
+++ /dev/null
@@ -1,22 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but its trait bounds were not satisfied
- --> tests/ui/source-enum-not-error.rs:9:14
- |
-4 | pub struct NotError;
- | ------------------- doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
-...
-9 | Broken { source: NotError },
- | ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds
- |
- = note: the following trait bounds were not satisfied:
- `NotError: std::error::Error`
- which is required by `NotError: AsDynError<'_>`
- `&NotError: std::error::Error`
- which is required by `&NotError: AsDynError<'_>`
-note: the trait `std::error::Error` must be implemented
- --> $RUST/core/src/error.rs
- |
- | pub trait Error: Debug + Display {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
- candidate #1: `AsDynError`
diff --git a/vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.rs b/vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.rs
deleted file mode 100644
index a877c2cd..00000000
--- a/vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-use thiserror::Error;
-
-#[derive(Debug)]
-pub struct NotError;
-
-#[derive(Error, Debug)]
-#[error("...")]
-pub enum ErrorEnum {
- Broken(#[source] NotError),
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.stderr b/vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.stderr
deleted file mode 100644
index dc97a4b8..00000000
--- a/vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.stderr
+++ /dev/null
@@ -1,22 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but its trait bounds were not satisfied
- --> tests/ui/source-enum-unnamed-field-not-error.rs:9:12
- |
-4 | pub struct NotError;
- | ------------------- doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
-...
-9 | Broken(#[source] NotError),
- | ^^^^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds
- |
- = note: the following trait bounds were not satisfied:
- `NotError: std::error::Error`
- which is required by `NotError: AsDynError<'_>`
- `&NotError: std::error::Error`
- which is required by `&NotError: AsDynError<'_>`
-note: the trait `std::error::Error` must be implemented
- --> $RUST/core/src/error.rs
- |
- | pub trait Error: Debug + Display {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
- candidate #1: `AsDynError`
diff --git a/vendor/thiserror/tests/ui/source-struct-not-error.rs b/vendor/thiserror/tests/ui/source-struct-not-error.rs
deleted file mode 100644
index d59df1ee..00000000
--- a/vendor/thiserror/tests/ui/source-struct-not-error.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-use thiserror::Error;
-
-#[derive(Debug)]
-struct NotError;
-
-#[derive(Error, Debug)]
-#[error("...")]
-pub struct ErrorStruct {
- source: NotError,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/source-struct-not-error.stderr b/vendor/thiserror/tests/ui/source-struct-not-error.stderr
deleted file mode 100644
index 07cd67ac..00000000
--- a/vendor/thiserror/tests/ui/source-struct-not-error.stderr
+++ /dev/null
@@ -1,20 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its trait bounds were not satisfied
- --> tests/ui/source-struct-not-error.rs:9:5
- |
-4 | struct NotError;
- | --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
-...
-9 | source: NotError,
- | ^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds
- |
- = note: the following trait bounds were not satisfied:
- `NotError: std::error::Error`
- which is required by `NotError: AsDynError<'_>`
-note: the trait `std::error::Error` must be implemented
- --> $RUST/core/src/error.rs
- |
- | pub trait Error: Debug + Display {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
- candidate #1: `AsDynError`
diff --git a/vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.rs b/vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.rs
deleted file mode 100644
index 160b6b24..00000000
--- a/vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-use thiserror::Error;
-
-#[derive(Debug)]
-struct NotError;
-
-#[derive(Error, Debug)]
-#[error("...")]
-pub struct ErrorStruct(#[source] NotError);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.stderr b/vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.stderr
deleted file mode 100644
index 1f5350bc..00000000
--- a/vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.stderr
+++ /dev/null
@@ -1,20 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its trait bounds were not satisfied
- --> tests/ui/source-struct-unnamed-field-not-error.rs:8:24
- |
-4 | struct NotError;
- | --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
-...
-8 | pub struct ErrorStruct(#[source] NotError);
- | ^^^^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds
- |
- = note: the following trait bounds were not satisfied:
- `NotError: std::error::Error`
- which is required by `NotError: AsDynError<'_>`
-note: the trait `std::error::Error` must be implemented
- --> $RUST/core/src/error.rs
- |
- | pub trait Error: Debug + Display {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
- candidate #1: `AsDynError`
diff --git a/vendor/thiserror/tests/ui/struct-with-fmt.rs b/vendor/thiserror/tests/ui/struct-with-fmt.rs
deleted file mode 100644
index 73bf79fa..00000000
--- a/vendor/thiserror/tests/ui/struct-with-fmt.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(fmt = core::fmt::Octal::fmt)]
-pub struct Error(i32);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/struct-with-fmt.stderr b/vendor/thiserror/tests/ui/struct-with-fmt.stderr
deleted file mode 100644
index 00463be9..00000000
--- a/vendor/thiserror/tests/ui/struct-with-fmt.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: #[error(fmt = ...)] is only supported in enums; for a struct, handwrite your own Display impl
- --> tests/ui/struct-with-fmt.rs:4:1
- |
-4 | #[error(fmt = core::fmt::Octal::fmt)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/transparent-display.rs b/vendor/thiserror/tests/ui/transparent-display.rs
deleted file mode 100644
index 2a59f183..00000000
--- a/vendor/thiserror/tests/ui/transparent-display.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(transparent)]
-#[error("...")]
-pub struct Error(anyhow::Error);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-display.stderr b/vendor/thiserror/tests/ui/transparent-display.stderr
deleted file mode 100644
index 54d958b2..00000000
--- a/vendor/thiserror/tests/ui/transparent-display.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: cannot have both #[error(transparent)] and a display attribute
- --> tests/ui/transparent-display.rs:5:1
- |
-5 | #[error("...")]
- | ^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/transparent-enum-many.rs b/vendor/thiserror/tests/ui/transparent-enum-many.rs
deleted file mode 100644
index e2a73a47..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-many.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum Error {
- #[error(transparent)]
- Other(anyhow::Error, String),
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-enum-many.stderr b/vendor/thiserror/tests/ui/transparent-enum-many.stderr
deleted file mode 100644
index a9adfa5a..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-many.stderr
+++ /dev/null
@@ -1,6 +0,0 @@
-error: #[error(transparent)] requires exactly one field
- --> tests/ui/transparent-enum-many.rs:5:5
- |
-5 | / #[error(transparent)]
-6 | | Other(anyhow::Error, String),
- | |________________________________^
diff --git a/vendor/thiserror/tests/ui/transparent-enum-not-error.rs b/vendor/thiserror/tests/ui/transparent-enum-not-error.rs
deleted file mode 100644
index 80ccfc97..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-not-error.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum Error {
- #[error(transparent)]
- Other { message: String },
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-enum-not-error.stderr b/vendor/thiserror/tests/ui/transparent-enum-not-error.stderr
deleted file mode 100644
index bb836d4e..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-not-error.stderr
+++ /dev/null
@@ -1,20 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for reference `&String`, but its trait bounds were not satisfied
- --> tests/ui/transparent-enum-not-error.rs:5:13
- |
-5 | #[error(transparent)]
- | ^^^^^^^^^^^ method cannot be called on `&String` due to unsatisfied trait bounds
- |
- ::: $RUST/alloc/src/string.rs
- |
- | pub struct String {
- | ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
- |
- = note: the following trait bounds were not satisfied:
- `String: std::error::Error`
- which is required by `String: AsDynError<'_>`
- `&String: std::error::Error`
- which is required by `&String: AsDynError<'_>`
- `str: Sized`
- which is required by `str: AsDynError<'_>`
- `str: std::error::Error`
- which is required by `str: AsDynError<'_>`
diff --git a/vendor/thiserror/tests/ui/transparent-enum-source.rs b/vendor/thiserror/tests/ui/transparent-enum-source.rs
deleted file mode 100644
index 3849f66e..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-source.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum Error {
- #[error(transparent)]
- Other(#[source] anyhow::Error),
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-enum-source.stderr b/vendor/thiserror/tests/ui/transparent-enum-source.stderr
deleted file mode 100644
index ccb90677..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-source.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: transparent variant can't contain #[source]
- --> tests/ui/transparent-enum-source.rs:6:11
- |
-6 | Other(#[source] anyhow::Error),
- | ^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.rs b/vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.rs
deleted file mode 100644
index 87c32e0b..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum Error {
- #[error(transparent)]
- Other(String),
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.stderr b/vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.stderr
deleted file mode 100644
index f337c592..00000000
--- a/vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.stderr
+++ /dev/null
@@ -1,20 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for reference `&String`, but its trait bounds were not satisfied
- --> tests/ui/transparent-enum-unnamed-field-not-error.rs:5:13
- |
-5 | #[error(transparent)]
- | ^^^^^^^^^^^ method cannot be called on `&String` due to unsatisfied trait bounds
- |
- ::: $RUST/alloc/src/string.rs
- |
- | pub struct String {
- | ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
- |
- = note: the following trait bounds were not satisfied:
- `String: std::error::Error`
- which is required by `String: AsDynError<'_>`
- `&String: std::error::Error`
- which is required by `&String: AsDynError<'_>`
- `str: Sized`
- which is required by `str: AsDynError<'_>`
- `str: std::error::Error`
- which is required by `str: AsDynError<'_>`
diff --git a/vendor/thiserror/tests/ui/transparent-struct-many.rs b/vendor/thiserror/tests/ui/transparent-struct-many.rs
deleted file mode 100644
index 18f24664..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-many.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(transparent)]
-pub struct Error {
- inner: anyhow::Error,
- what: String,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-struct-many.stderr b/vendor/thiserror/tests/ui/transparent-struct-many.stderr
deleted file mode 100644
index c0e3806e..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-many.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: #[error(transparent)] requires exactly one field
- --> tests/ui/transparent-struct-many.rs:4:1
- |
-4 | #[error(transparent)]
- | ^^^^^^^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/transparent-struct-not-error.rs b/vendor/thiserror/tests/ui/transparent-struct-not-error.rs
deleted file mode 100644
index 811ff539..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-not-error.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(transparent)]
-pub struct Error {
- message: String,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-struct-not-error.stderr b/vendor/thiserror/tests/ui/transparent-struct-not-error.stderr
deleted file mode 100644
index ee50d03a..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-not-error.stderr
+++ /dev/null
@@ -1,18 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for struct `String`, but its trait bounds were not satisfied
- --> tests/ui/transparent-struct-not-error.rs:4:9
- |
-4 | #[error(transparent)]
- | ^^^^^^^^^^^ method cannot be called on `String` due to unsatisfied trait bounds
- |
- ::: $RUST/alloc/src/string.rs
- |
- | pub struct String {
- | ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
- |
- = note: the following trait bounds were not satisfied:
- `String: std::error::Error`
- which is required by `String: AsDynError<'_>`
- `str: Sized`
- which is required by `str: AsDynError<'_>`
- `str: std::error::Error`
- which is required by `str: AsDynError<'_>`
diff --git a/vendor/thiserror/tests/ui/transparent-struct-source.rs b/vendor/thiserror/tests/ui/transparent-struct-source.rs
deleted file mode 100644
index d4512c28..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-source.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(transparent)]
-pub struct Error(#[source] anyhow::Error);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-struct-source.stderr b/vendor/thiserror/tests/ui/transparent-struct-source.stderr
deleted file mode 100644
index 3012ca31..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-source.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: transparent error struct can't contain #[source]
- --> tests/ui/transparent-struct-source.rs:5:18
- |
-5 | pub struct Error(#[source] anyhow::Error);
- | ^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.rs b/vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.rs
deleted file mode 100644
index b4f7fbbf..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error(transparent)]
-pub struct Error(String);
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.stderr b/vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.stderr
deleted file mode 100644
index c3d6c002..00000000
--- a/vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.stderr
+++ /dev/null
@@ -1,18 +0,0 @@
-error[E0599]: the method `as_dyn_error` exists for struct `String`, but its trait bounds were not satisfied
- --> tests/ui/transparent-struct-unnamed-field-not-error.rs:4:9
- |
-4 | #[error(transparent)]
- | ^^^^^^^^^^^ method cannot be called on `String` due to unsatisfied trait bounds
- |
- ::: $RUST/alloc/src/string.rs
- |
- | pub struct String {
- | ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
- |
- = note: the following trait bounds were not satisfied:
- `String: std::error::Error`
- which is required by `String: AsDynError<'_>`
- `str: Sized`
- which is required by `str: AsDynError<'_>`
- `str: std::error::Error`
- which is required by `str: AsDynError<'_>`
diff --git a/vendor/thiserror/tests/ui/unconditional-recursion.rs b/vendor/thiserror/tests/ui/unconditional-recursion.rs
deleted file mode 100644
index 035b15e5..00000000
--- a/vendor/thiserror/tests/ui/unconditional-recursion.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[error("{self}")]
-pub struct Error;
-
-fn main() {
- __FAIL__;
-}
diff --git a/vendor/thiserror/tests/ui/unconditional-recursion.stderr b/vendor/thiserror/tests/ui/unconditional-recursion.stderr
deleted file mode 100644
index 568e891a..00000000
--- a/vendor/thiserror/tests/ui/unconditional-recursion.stderr
+++ /dev/null
@@ -1,21 +0,0 @@
-error[E0425]: cannot find value `__FAIL__` in this scope
- --> tests/ui/unconditional-recursion.rs:8:5
- |
-8 | __FAIL__;
- | ^^^^^^^^ not found in this scope
-
-warning: function cannot return without recursing
- --> tests/ui/unconditional-recursion.rs:4:9
- |
-4 | #[error("{self}")]
- | ^^^^^^^^
- | |
- | cannot return without recursing
- | recursive call site
- |
- = help: a `loop` may express intention better if this is on purpose
-note: the lint level is defined here
- --> tests/ui/unconditional-recursion.rs:4:9
- |
-4 | #[error("{self}")]
- | ^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/unexpected-field-fmt.rs b/vendor/thiserror/tests/ui/unexpected-field-fmt.rs
deleted file mode 100644
index 7c439d94..00000000
--- a/vendor/thiserror/tests/ui/unexpected-field-fmt.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-pub enum Error {
- What {
- #[error("...")]
- io: std::io::Error,
- },
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/unexpected-field-fmt.stderr b/vendor/thiserror/tests/ui/unexpected-field-fmt.stderr
deleted file mode 100644
index bf3c24df..00000000
--- a/vendor/thiserror/tests/ui/unexpected-field-fmt.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: not expected here; the #[error(...)] attribute belongs on top of a struct or an enum variant
- --> tests/ui/unexpected-field-fmt.rs:6:9
- |
-6 | #[error("...")]
- | ^^^^^^^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/unexpected-struct-source.rs b/vendor/thiserror/tests/ui/unexpected-struct-source.rs
deleted file mode 100644
index f3964942..00000000
--- a/vendor/thiserror/tests/ui/unexpected-struct-source.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error, Debug)]
-#[source]
-pub struct Error;
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/unexpected-struct-source.stderr b/vendor/thiserror/tests/ui/unexpected-struct-source.stderr
deleted file mode 100644
index 6f15841d..00000000
--- a/vendor/thiserror/tests/ui/unexpected-struct-source.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: not expected here; the #[source] attribute belongs on a specific field
- --> tests/ui/unexpected-struct-source.rs:4:1
- |
-4 | #[source]
- | ^^^^^^^^^
diff --git a/vendor/thiserror/tests/ui/union.rs b/vendor/thiserror/tests/ui/union.rs
deleted file mode 100644
index cd6a9346..00000000
--- a/vendor/thiserror/tests/ui/union.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use thiserror::Error;
-
-#[derive(Error)]
-pub union U {
- msg: &'static str,
- num: usize,
-}
-
-fn main() {}
diff --git a/vendor/thiserror/tests/ui/union.stderr b/vendor/thiserror/tests/ui/union.stderr
deleted file mode 100644
index 3ec4d71c..00000000
--- a/vendor/thiserror/tests/ui/union.stderr
+++ /dev/null
@@ -1,8 +0,0 @@
-error: union as errors are not supported
- --> tests/ui/union.rs:4:1
- |
-4 | / pub union U {
-5 | | msg: &'static str,
-6 | | num: usize,
-7 | | }
- | |_^