Skip to content

Commit

Permalink
Auto merge of #23799 - reem:error-no-send, r=aturon
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Mar 28, 2015
2 parents 9f9e251 + 3feeea5 commit f8b6e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8b6e28

Please sign in to comment.