Skip to content

Commit f8b6e28

Browse files
committed
Auto merge of #23799 - reem:error-no-send, r=aturon
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 r? @aturon
2 parents 9f9e251 + 3feeea5 commit f8b6e28

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)