Remove public ccx function on MirContext

This commit is contained in:
Mark Simulacrum 2016-12-19 07:15:00 -07:00
parent 7f5dffbb19
commit a445199afb
2 changed files with 1 additions and 5 deletions

View File

@ -140,7 +140,7 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
LvalueTy::Downcast { adt_def: _, substs: _, variant_index: v } => v,
};
let discr = discr as u64;
let is_sized = self.ccx().shared().type_is_sized(projected_ty.to_ty(tcx));
let is_sized = self.fcx.ccx.shared().type_is_sized(projected_ty.to_ty(tcx));
let base = if is_sized {
adt::MaybeSizedValue::sized(tr_base.llval)
} else {

View File

@ -158,10 +158,6 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
scope_metadata
}
}
pub fn ccx(&self) -> &'a CrateContext<'a, 'tcx> {
self.fcx.ccx
}
}
enum LocalRef<'tcx> {