Skip to content

Commit 3feeea5

Browse files
committed
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
1 parent 242ed0b commit 3feeea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ use fmt::{Debug, Display};
8787

8888
/// Base functionality for all errors in Rust.
8989
#[stable(feature = "rust1", since = "1.0.0")]
90-
pub trait Error: Debug + Display + Send {
90+
pub trait Error: Debug + Display {
9191
/// A short description of the error.
9292
///
9393
/// The description should not contain newlines or sentence-ending

0 commit comments

Comments
 (0)