From 640cd3f39053d6c3826567d7d12986ad213e79a1 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 23 Sep 2022 14:40:04 -0700 Subject: [PATCH] attributes: update trybuild output for Rust 1.64.0 (#2322) The error messages for these tests appear to have changed a bit with Rust 1.64. This commit includes changes to the `.stderr` file after running the tests with `TRYBUILD=overwrite`, in order to update the expected output for the latest Rust. --- tracing-attributes/tests/ui/async_instrument.stderr | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tracing-attributes/tests/ui/async_instrument.stderr b/tracing-attributes/tests/ui/async_instrument.stderr index 5214f92a7e..db6f6b4343 100644 --- a/tracing-attributes/tests/ui/async_instrument.stderr +++ b/tracing-attributes/tests/ui/async_instrument.stderr @@ -34,6 +34,15 @@ error[E0277]: `(&str,)` doesn't implement `std::fmt::Display` = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead = note: this error originates in the attribute macro `tracing::instrument` (in Nightly builds, run with -Z macro-backtrace for more info) +error[E0277]: `(&str,)` doesn't implement `std::fmt::Display` + --> tests/ui/async_instrument.rs:15:34 + | +15 | async fn opaque_unsatisfied() -> impl std::fmt::Display { + | ^^^^^^^^^^^^^^^^^^^^^^ `(&str,)` cannot be formatted with the default formatter + | + = help: the trait `std::fmt::Display` is not implemented for `(&str,)` + = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead + error[E0308]: mismatched types --> tests/ui/async_instrument.rs:23:5 |