diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
commit | 4f9fe856a25ab29345b90e7725509e9ee38a37be (patch) | |
tree | e4ffd8a9374cae7b21f7cbfb352927e0e074aff6 /vendor/anyhow/tests/ui | |
parent | Adding upstream version 1.68.2+dfsg1. (diff) | |
download | rustc-upstream/1.69.0+dfsg1.tar.xz rustc-upstream/1.69.0+dfsg1.zip |
Adding upstream version 1.69.0+dfsg1.upstream/1.69.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/anyhow/tests/ui')
-rw-r--r-- | vendor/anyhow/tests/ui/empty-ensure.stderr | 5 | ||||
-rw-r--r-- | vendor/anyhow/tests/ui/no-impl.stderr | 2 | ||||
-rw-r--r-- | vendor/anyhow/tests/ui/temporary-value.stderr | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/vendor/anyhow/tests/ui/empty-ensure.stderr b/vendor/anyhow/tests/ui/empty-ensure.stderr index 91e0a9803..bf0229a2b 100644 --- a/vendor/anyhow/tests/ui/empty-ensure.stderr +++ b/vendor/anyhow/tests/ui/empty-ensure.stderr @@ -4,4 +4,9 @@ error: unexpected end of macro invocation 4 | ensure!(); | ^^^^^^^^^ missing tokens in macro arguments | +note: while trying to match meta-variable `$cond:expr` + --> src/ensure.rs + | + | ($cond:expr $(,)?) => { + | ^^^^^^^^^^ = note: this error originates in the macro `$crate::__parse_ensure` which comes from the expansion of the macro `ensure` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/vendor/anyhow/tests/ui/no-impl.stderr b/vendor/anyhow/tests/ui/no-impl.stderr index dced9987e..1ddf76863 100644 --- a/vendor/anyhow/tests/ui/no-impl.stderr +++ b/vendor/anyhow/tests/ui/no-impl.stderr @@ -18,7 +18,7 @@ error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its tr which is required by `&Error: anyhow::kind::AdhocKind` `&Error: Into<anyhow::Error>` which is required by `&Error: anyhow::kind::TraitKind` -note: the following traits must be implemented +note: the traits `Into` and `std::fmt::Display` must be implemented --> $RUST/core/src/fmt/mod.rs | | pub trait Display { diff --git a/vendor/anyhow/tests/ui/temporary-value.stderr b/vendor/anyhow/tests/ui/temporary-value.stderr index 4e4115fc3..dc27c4981 100644 --- a/vendor/anyhow/tests/ui/temporary-value.stderr +++ b/vendor/anyhow/tests/ui/temporary-value.stderr @@ -4,6 +4,6 @@ error[E0716]: temporary value dropped while borrowed 4 | let _ = anyhow!(&String::new()); | ---------^^^^^^^^^^^^^- | | | - | | creates a temporary which is freed while still in use + | | creates a temporary value which is freed while still in use | temporary value is freed at the end of this statement | argument requires that borrow lasts for `'static` |