Skip to content
Permalink
Browse files

Get rid of one more useless `lift` invocation

  • Loading branch information...
oli-obk committed Aug 5, 2019
1 parent f207933 commit bd57498e7d509168609a685b264289643ef8b2c3
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/librustc/ty/sty.rs
@@ -2305,8 +2305,7 @@ impl<'tcx> Const<'tcx> {
// because it tries to relate an `Infer` to a `Param`.
ConstValue::Unevaluated(did, substs) => {
// if `substs` has no unresolved components, use and empty param_env
let pem_and_substs = param_env.with_reveal_all().and(substs);
let (param_env, substs) = tcx.lift_to_global(&pem_and_substs).unwrap().into_parts();
let (param_env, substs) = param_env.with_reveal_all().and(substs).into_parts();
// try to resolve e.g. associated constants to their definition on an impl
let instance = ty::Instance::resolve(tcx, param_env, did, substs)?;
let gid = GlobalId {

0 comments on commit bd57498

Please sign in to comment.
You can’t perform that action at this time.