rustc: remove dead code

This commit is contained in:
Jorge Aparicio 2015-01-04 10:42:51 -05:00
parent 799332fa3f
commit 5d6a6f5957
2 changed files with 0 additions and 18 deletions

View File

@ -71,7 +71,6 @@ use middle::ty::{self, Ty};
use util::ppaux;
use util::ppaux::Repr;
use syntax::abi;
use syntax::ast;
// Note: Coerce is not actually a combiner, in that it does not

View File

@ -3501,23 +3501,6 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
b | (TC::ReachesBorrowed).when(region != ty::ReStatic)
}
fn closure_contents(cty: &ClosureTy) -> TypeContents {
// Closure contents are just like trait contents, but with potentially
// even more stuff.
let st = object_contents(&cty.bounds);
let st = match cty.store {
UniqTraitStore => {
st.owned_pointer()
}
RegionTraitStore(r, mutbl) => {
st.reference(borrowed_contents(r, mutbl))
}
};
st
}
fn object_contents(bounds: &ExistentialBounds) -> TypeContents {
// These are the type contents of the (opaque) interior. We
// make no assumptions (other than that it cannot have an