Skip to content

Commit

Permalink
rustdoc: remove handling of Gc.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Oct 2, 2014
1 parent 8a91d33 commit 39de846
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/librustdoc/clean/mod.rs
Expand Up @@ -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>,
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/format.rs
Expand Up @@ -476,7 +476,7 @@ impl fmt::Show for clean::Type {
};
write!(f, "&amp;{}{}{}", lt, MutableSpace(mutability), **ty)
}
clean::Unique(..) | clean::Managed(..) => {
clean::Unique(..) => {
fail!("should have been cleaned")
}
}
Expand Down

0 comments on commit 39de846

Please sign in to comment.