std: Move unstable::finally to std::finally. #1457

[breaking-change]
This commit is contained in:
Brian Anderson 2014-05-20 22:27:24 -07:00
parent 1a1e6c8e73
commit 8e58ec5b9d
8 changed files with 8 additions and 9 deletions

View File

@ -20,7 +20,7 @@ also be used. See that function for more details.
# Example
```
use std::unstable::finally::Finally;
use std::finally::Finally;
(|| {
// ...
@ -75,7 +75,7 @@ impl<T> Finally<T> for fn() -> T {
* # Example
*
* ```
* use std::unstable::finally::try_finally;
* use std::finally::try_finally;
*
* struct State<'a> { buffer: &'a mut [u8], len: uint }
* # let mut buf = [];

View File

@ -144,6 +144,7 @@ pub use core::clone;
#[cfg(not(test))] pub use core::cmp;
pub use core::container;
pub use core::default;
pub use core::finally;
pub use core::intrinsics;
pub use core::iter;
#[cfg(not(test))] pub use core::kinds;

View File

@ -144,7 +144,7 @@ mod imp {
mod tests {
use prelude::*;
use super::*;
use unstable::finally::Finally;
use finally::Finally;
#[test]
fn smoke_test() {

View File

@ -36,7 +36,7 @@ use rt::unwind::Unwinder;
use str::SendStr;
use sync::atomics::{AtomicUint, SeqCst};
use task::{TaskResult, TaskOpts};
use unstable::finally::Finally;
use finally::Finally;
/// The Task struct represents all state associated with a rust
/// task. There are at this point two primary "subtypes" of task,

View File

@ -110,7 +110,7 @@ use option::{None, Option, Some};
use ptr::RawPtr;
use ptr;
use rt::heap::{allocate, deallocate};
use unstable::finally::try_finally;
use finally::try_finally;
use vec::Vec;
pub use core::slice::{ref_slice, mut_ref_slice, Splits, Windows};

View File

@ -10,8 +10,6 @@
#![doc(hidden)]
pub use core::finally;
pub mod dynamic_lib;
pub mod sync;

View File

@ -18,7 +18,7 @@
use std::kinds::marker;
use std::mem;
use std::sync::atomics;
use std::unstable::finally::Finally;
use std::finally::Finally;
use mutex;

View File

@ -15,7 +15,7 @@ extern crate native;
use std::os;
use std::io::process::Command;
use std::unstable::finally::Finally;
use std::finally::Finally;
use std::str;
#[start]