]> git.lizzy.rs Git - rust.git/commitdiff
Remove call to `to_def_id` before calling query helper
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Thu, 9 Apr 2020 17:30:21 +0000 (10:30 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Sat, 11 Apr 2020 22:18:51 +0000 (15:18 -0700)
src/librustc_typeck/check/wfcheck.rs

index 5bfad558b6b3688f37564f26d88f6740dcc07b1b..6b6e2bb329fc904aea3cd61ed8184fa0f52d4861 100644 (file)
@@ -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),
     }
 }