about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-04-09 10:30:21 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-04-11 15:18:51 -0700
commit6e5a21069dc7e975b2ed9ca821e4f419ba011d97 (patch)
treed51e7c4fe8fb842134cf433da4453a9e5c1cac4a
parent0d4639d77c55a0146a0aa468fd7985da843d7380 (diff)
downloadrust-6e5a21069dc7e975b2ed9ca821e4f419ba011d97.tar.gz
rust-6e5a21069dc7e975b2ed9ca821e4f419ba011d97.zip
Remove call to `to_def_id` before calling query helper
-rw-r--r--src/librustc_typeck/check/wfcheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/wfcheck.rs b/src/librustc_typeck/check/wfcheck.rs
index 5bfad558b6b..6b6e2bb329f 100644
--- a/src/librustc_typeck/check/wfcheck.rs
+++ b/src/librustc_typeck/check/wfcheck.rs
@@ -335,7 +335,7 @@ fn for_id(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) -> CheckWfFcxBuilder<'_>
         inherited: Inherited::build(tcx, def_id),
         id,
         span,
-        param_env: tcx.param_env(def_id.to_def_id()),
+        param_env: tcx.param_env(def_id),
     }
 }