From 3feeea59dbfe397cccc6760b68f7bfb8291540b7 Mon Sep 17 00:00:00 2001 From: Jonathan Reem Date: Fri, 27 Mar 2015 16:35:16 -0700 Subject: [PATCH] Make `std::error::Error` not inherit from Send The Send bound is an unnecessary restriction, and though provided as a convenience, can't be removed by downstream code. The removal of this bound is a [breaking-change] since it removes an implicit Send bound on all `E: Error` and all `Error` trait objects. To migrate, consider if your code actually requires the Send bound and, if so, add it explicitly. Fixes #23774 --- src/libcore/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/error.rs b/src/libcore/error.rs index d7b4c9411fb4e..51f3369a75bd3 100644 --- a/src/libcore/error.rs +++ b/src/libcore/error.rs @@ -87,7 +87,7 @@ use fmt::{Debug, Display}; /// Base functionality for all errors in Rust. #[stable(feature = "rust1", since = "1.0.0")] -pub trait Error: Debug + Display + Send { +pub trait Error: Debug + Display { /// A short description of the error. /// /// The description should not contain newlines or sentence-ending