Convert libstd to use the Drop trait
This commit is contained in:
committed by
Brian Anderson
parent
4b0e1336b2
commit
4589597785
@@ -23,10 +23,12 @@ use cast::copy_lifetime;
|
||||
#[doc = "The future type"]
|
||||
pub struct Future<A> {
|
||||
/*priv*/ mut state: FutureState<A>,
|
||||
}
|
||||
|
||||
// FIXME(#2829) -- futures should not be copyable, because they close
|
||||
// over fn~'s that have pipes and so forth within!
|
||||
drop {}
|
||||
// FIXME(#2829) -- futures should not be copyable, because they close
|
||||
// over fn~'s that have pipes and so forth within!
|
||||
impl<A> Future<A> : Drop {
|
||||
fn finalize() {}
|
||||
}
|
||||
|
||||
priv enum FutureState<A> {
|
||||
|
||||
Reference in New Issue
Block a user