From 43a865ad540a3d8218eeb62ba4e7f9987cfa1c0e Mon Sep 17 00:00:00 2001 From: joboet Date: Tue, 25 Jun 2024 23:43:19 +0200 Subject: [PATCH] fix UI test, simplify error message --- core/src/fmt/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/fmt/mod.rs b/core/src/fmt/mod.rs index c25bc5a1b13c9..3bcd4be183465 100644 --- a/core/src/fmt/mod.rs +++ b/core/src/fmt/mod.rs @@ -459,6 +459,12 @@ impl<'a> Arguments<'a> { } } +// Manually implementing these results in better error messages. +#[stable(feature = "rust1", since = "1.0.0")] +impl !Send for Arguments<'_> {} +#[stable(feature = "rust1", since = "1.0.0")] +impl !Sync for Arguments<'_> {} + #[stable(feature = "rust1", since = "1.0.0")] impl Debug for Arguments<'_> { fn fmt(&self, fmt: &mut Formatter<'_>) -> Result {