Skip to content

Commit bd40c10

Browse files
committed
Remove an unnecessary query + subst round
1 parent 19a1192 commit bd40c10

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ impl<'tcx> Operand<'tcx> {
18841884
substs: SubstsRef<'tcx>,
18851885
span: Span,
18861886
) -> Self {
1887-
let ty = tcx.bound_type_of(def_id).subst(tcx, substs);
1887+
let ty = tcx.mk_fn_def(def_id, substs);
18881888
Operand::Constant(Box::new(Constant {
18891889
span,
18901890
user_ty: None,

0 commit comments

Comments
 (0)