about summary refs log tree commit diff
path: root/src/libstd/error.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-03 11:00:03 -0700
committerGitHub <noreply@github.com>2016-10-03 11:00:03 -0700
commit7a26aeca77bcf334747eddb630e3b9475149b7f5 (patch)
tree1c3b1e3e30d338f9ecdc2d8b9badf13d1ab4cb84 /src/libstd/error.rs
parentff713464e6530fab2e13d0965929d8189c59ae56 (diff)
parent10c3134da025f3d63700abf52769c0f106637a14 (diff)
downloadrust-7a26aeca77bcf334747eddb630e3b9475149b7f5.tar.gz
rust-7a26aeca77bcf334747eddb630e3b9475149b7f5.zip
Auto merge of #36815 - alexcrichton:stabilize-1.13, r=aturon
std: Stabilize and deprecate APIs for 1.13

This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:

Stabilized

* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`

Deprecated

* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
  module

Closes #28147
Closes #34767
Closes #35057
Closes #35070
Diffstat (limited to 'src/libstd/error.rs')
-rw-r--r--src/libstd/error.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index 16290620010..87092b1abc9 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -288,15 +288,15 @@ impl Error for fmt::Error {
     }
 }
 
-#[unstable(feature = "try_borrow", issue = "35070")]
-impl<'a, T: ?Sized + Reflect> Error for cell::BorrowError<'a, T> {
+#[stable(feature = "try_borrow", since = "1.13.0")]
+impl Error for cell::BorrowError {
     fn description(&self) -> &str {
         "already mutably borrowed"
     }
 }
 
-#[unstable(feature = "try_borrow", issue = "35070")]
-impl<'a, T: ?Sized + Reflect> Error for cell::BorrowMutError<'a, T> {
+#[stable(feature = "try_borrow", since = "1.13.0")]
+impl Error for cell::BorrowMutError {
     fn description(&self) -> &str {
         "already borrowed"
     }