diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-08-05 17:49:40 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-08-05 17:49:40 +0200 |
| commit | bd57498e7d509168609a685b264289643ef8b2c3 (patch) | |
| tree | 0ff83b8000cdcdf3e3f20da6a9bb51843d212279 | |
| parent | f2079338b5ef5b7354def29e2410998f3089066e (diff) | |
| download | rust-bd57498e7d509168609a685b264289643ef8b2c3.tar.gz rust-bd57498e7d509168609a685b264289643ef8b2c3.zip | |
Get rid of one more useless `lift` invocation
| -rw-r--r-- | src/librustc/ty/sty.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs index e5e47a51e8d..769b6592b6f 100644 --- a/src/librustc/ty/sty.rs +++ b/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 { |
