Skip to content

Commit 5d6a6f5

Browse files
author
Jorge Aparicio
committed
rustc: remove dead code
1 parent 799332f commit 5d6a6f5

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/librustc/middle/infer/coercion.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ use middle::ty::{self, Ty};
7171
use util::ppaux;
7272
use util::ppaux::Repr;
7373

74-
use syntax::abi;
7574
use syntax::ast;
7675

7776
// Note: Coerce is not actually a combiner, in that it does not

src/librustc/middle/ty.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,23 +3501,6 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
35013501
b | (TC::ReachesBorrowed).when(region != ty::ReStatic)
35023502
}
35033503

3504-
fn closure_contents(cty: &ClosureTy) -> TypeContents {
3505-
// Closure contents are just like trait contents, but with potentially
3506-
// even more stuff.
3507-
let st = object_contents(&cty.bounds);
3508-
3509-
let st = match cty.store {
3510-
UniqTraitStore => {
3511-
st.owned_pointer()
3512-
}
3513-
RegionTraitStore(r, mutbl) => {
3514-
st.reference(borrowed_contents(r, mutbl))
3515-
}
3516-
};
3517-
3518-
st
3519-
}
3520-
35213504
fn object_contents(bounds: &ExistentialBounds) -> TypeContents {
35223505
// These are the type contents of the (opaque) interior. We
35233506
// make no assumptions (other than that it cannot have an

0 commit comments

Comments
 (0)