style fixes as requested by @eddyb
This commit is contained in:
parent
081b29c1f6
commit
29220663c1
4 changed files with 9 additions and 11 deletions
|
|
@ -165,8 +165,6 @@ impl<'a, 'b, 'tcx> Instance<'tcx> {
|
|||
debug!("resolve(def_id={:?}, substs={:?}) = {:?}", def_id, substs, result);
|
||||
result
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
fn resolve_closure<'a, 'tcx>(
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ pub fn resolve_and_get_fn<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
|
|||
-> ValueRef
|
||||
{
|
||||
get_fn(ccx, ty::Instance::resolve(ccx.tcx(),
|
||||
ty::ParamEnv::empty(traits::Reveal::All),
|
||||
def_id,
|
||||
substs).unwrap())
|
||||
ty::ParamEnv::empty(traits::Reveal::All),
|
||||
def_id,
|
||||
substs).unwrap())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -431,9 +431,9 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
|
|||
let (instance, mut llfn) = match callee.ty.sty {
|
||||
ty::TyFnDef(def_id, substs) => {
|
||||
(Some(ty::Instance::resolve(bcx.ccx.tcx(),
|
||||
ty::ParamEnv::empty(traits::Reveal::All),
|
||||
def_id,
|
||||
substs).unwrap()),
|
||||
ty::ParamEnv::empty(traits::Reveal::All),
|
||||
def_id,
|
||||
substs).unwrap()),
|
||||
None)
|
||||
}
|
||||
ty::TyFnPtr(_) => {
|
||||
|
|
|
|||
|
|
@ -262,9 +262,9 @@ impl<'a, 'tcx> MirConstContext<'a, 'tcx> {
|
|||
args: IndexVec<mir::Local, Result<Const<'tcx>, ConstEvalErr<'tcx>>>)
|
||||
-> Result<Const<'tcx>, ConstEvalErr<'tcx>> {
|
||||
let instance = ty::Instance::resolve(ccx.tcx(),
|
||||
ty::ParamEnv::empty(traits::Reveal::All),
|
||||
def_id,
|
||||
substs).unwrap();
|
||||
ty::ParamEnv::empty(traits::Reveal::All),
|
||||
def_id,
|
||||
substs).unwrap();
|
||||
let mir = ccx.tcx().instance_mir(instance.def);
|
||||
MirConstContext::new(ccx, &mir, instance.substs, args).trans()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue