diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-10-01 01:42:04 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-10-02 16:59:31 +0300 |
| commit | 39de8464ed16e00c716faff2782fef6babbb090b (patch) | |
| tree | 87627a2ad1bdfe3c7c3b3c099445938cf8e0d840 | |
| parent | 8a91d33ee7267c71a0ae286739dbd72433470004 (diff) | |
| download | rust-39de8464ed16e00c716faff2782fef6babbb090b.tar.gz rust-39de8464ed16e00c716faff2782fef6babbb090b.zip | |
rustdoc: remove handling of Gc.
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 7 | ||||
| -rw-r--r-- | src/librustdoc/html/format.rs | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index cb5c633bd25..e251544b5be 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1087,7 +1087,6 @@ pub enum Type { /// aka TyBot Bottom, Unique(Box<Type>), - Managed(Box<Type>), RawPointer(Mutability, Box<Type>), BorrowedRef { pub lifetime: Option<Lifetime>, @@ -1253,12 +1252,6 @@ impl Clean<Type> for ty::t { ty::ty_float(ast::TyF32) => Primitive(F32), ty::ty_float(ast::TyF64) => Primitive(F64), ty::ty_str => Primitive(Str), - ty::ty_box(t) => { - let gc_did = cx.tcx_opt().and_then(|tcx| { - tcx.lang_items.gc() - }); - lang_struct(cx, gc_did, t, "Gc", Managed) - } ty::ty_uniq(t) => { let box_did = cx.tcx_opt().and_then(|tcx| { tcx.lang_items.owned_box() diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index b52b34ff581..6a001b32470 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -476,7 +476,7 @@ impl fmt::Show for clean::Type { }; write!(f, "&{}{}{}", lt, MutableSpace(mutability), **ty) } - clean::Unique(..) | clean::Managed(..) => { + clean::Unique(..) => { fail!("should have been cleaned") } } |
