mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
parent
1a1e6c8e73
commit
8e58ec5b9d
@ -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 = [];
|
||||
|
@ -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;
|
||||
|
@ -144,7 +144,7 @@ mod imp {
|
||||
mod tests {
|
||||
use prelude::*;
|
||||
use super::*;
|
||||
use unstable::finally::Finally;
|
||||
use finally::Finally;
|
||||
|
||||
#[test]
|
||||
fn smoke_test() {
|
||||
|
@ -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,
|
||||
|
@ -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};
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
#![doc(hidden)]
|
||||
|
||||
pub use core::finally;
|
||||
|
||||
pub mod dynamic_lib;
|
||||
|
||||
pub mod sync;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user