about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-28 09:09:50 +0000
committerbors <bors@rust-lang.org>2015-03-28 09:09:50 +0000
commitf8b6e28e758231f611e8e7923aa607cebd150717 (patch)
tree6ecb32daee0f63df62d89d8a592ac7a4050f9361
parent9f9e2516b41a63c4500f7cff1148de3ba05cc5cd (diff)
parent3feeea59dbfe397cccc6760b68f7bfb8291540b7 (diff)
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
-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