rustdoc: remove handling of Gc.
This commit is contained in:
@@ -1087,7 +1087,6 @@ pub enum Type {
|
|||||||
/// aka TyBot
|
/// aka TyBot
|
||||||
Bottom,
|
Bottom,
|
||||||
Unique(Box<Type>),
|
Unique(Box<Type>),
|
||||||
Managed(Box<Type>),
|
|
||||||
RawPointer(Mutability, Box<Type>),
|
RawPointer(Mutability, Box<Type>),
|
||||||
BorrowedRef {
|
BorrowedRef {
|
||||||
pub lifetime: Option<Lifetime>,
|
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::TyF32) => Primitive(F32),
|
||||||
ty::ty_float(ast::TyF64) => Primitive(F64),
|
ty::ty_float(ast::TyF64) => Primitive(F64),
|
||||||
ty::ty_str => Primitive(Str),
|
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) => {
|
ty::ty_uniq(t) => {
|
||||||
let box_did = cx.tcx_opt().and_then(|tcx| {
|
let box_did = cx.tcx_opt().and_then(|tcx| {
|
||||||
tcx.lang_items.owned_box()
|
tcx.lang_items.owned_box()
|
||||||
|
|||||||
@@ -476,7 +476,7 @@ impl fmt::Show for clean::Type {
|
|||||||
};
|
};
|
||||||
write!(f, "&{}{}{}", lt, MutableSpace(mutability), **ty)
|
write!(f, "&{}{}{}", lt, MutableSpace(mutability), **ty)
|
||||||
}
|
}
|
||||||
clean::Unique(..) | clean::Managed(..) => {
|
clean::Unique(..) => {
|
||||||
fail!("should have been cleaned")
|
fail!("should have been cleaned")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user