Skip to content

Commit 6e5a210

Browse files
Remove call to to_def_id before calling query helper
1 parent 0d4639d commit 6e5a210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/wfcheck.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ fn for_id(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) -> CheckWfFcxBuilder<'_>
335335
inherited: Inherited::build(tcx, def_id),
336336
id,
337337
span,
338-
param_env: tcx.param_env(def_id.to_def_id()),
338+
param_env: tcx.param_env(def_id),
339339
}
340340
}
341341

0 commit comments

Comments
 (0)