Remove public ccx function on MirContext
This commit is contained in:
parent
7f5dffbb19
commit
a445199afb
@ -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 {
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user