Replace NonCopyable usage with NoPod

cc #10834
This commit is contained in:
Flavio Percoco
2014-01-26 11:42:46 +01:00
parent d42521aa92
commit c6b1bce96f
9 changed files with 58 additions and 93 deletions

View File

@@ -56,7 +56,7 @@
use any::Any;
use comm::{Chan, Port};
use io::Writer;
use kinds::Send;
use kinds::{Send, marker};
use logging::Logger;
use option::{None, Some, Option};
use result::{Result, Ok, Err};
@@ -64,7 +64,6 @@ use rt::local::Local;
use rt::task::Task;
use send_str::{SendStr, IntoSendStr};
use str::Str;
use util;
#[cfg(test)] use any::{AnyOwnExt, AnyRefExt};
#[cfg(test)] use comm::SharedChan;
@@ -126,7 +125,7 @@ pub struct TaskOpts {
pub struct TaskBuilder {
opts: TaskOpts,
priv gen_body: Option<proc(v: proc()) -> proc()>,
priv can_not_copy: Option<util::NonCopyable>,
priv nopod: Option<marker::NoPod>,
}
/**
@@ -138,7 +137,7 @@ pub fn task() -> TaskBuilder {
TaskBuilder {
opts: TaskOpts::new(),
gen_body: None,
can_not_copy: None,
nopod: None,
}
}