Skip to content

Commit

Permalink
Remove call to to_def_id before calling query helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Apr 11, 2020
1 parent 0d4639d commit 6e5a210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/wfcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 6e5a210

Please sign in to comment.