Skip to content

Commit

Permalink
Make std::error::Error not inherit from Send
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
  • Loading branch information
reem committed Mar 27, 2015
1 parent 242ed0b commit 3feeea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/error.rs
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 3feeea5

Please sign in to comment.