about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Reem <jonathan.reem@gmail.com>2015-03-27 16:35:16 -0700
committerJonathan Reem <jonathan.reem@gmail.com>2015-03-27 16:35:16 -0700
commit3feeea59dbfe397cccc6760b68f7bfb8291540b7 (patch)
tree044bade9d236a26a815277ed359108ad6b9384aa
parent242ed0b7c0f6a21096f2cc3e1ad1bdb176d02545 (diff)
downloadrust-3feeea59dbfe397cccc6760b68f7bfb8291540b7.tar.gz
rust-3feeea59dbfe397cccc6760b68f7bfb8291540b7.zip
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
-rw-r--r--src/libcore/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/error.rs b/src/libcore/error.rs
index d7b4c9411fb..51f3369a75b 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