We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a1192 commit bd40c10Copy full SHA for bd40c10
1 file changed
compiler/rustc_middle/src/mir/mod.rs
@@ -1884,7 +1884,7 @@ impl<'tcx> Operand<'tcx> {
1884
substs: SubstsRef<'tcx>,
1885
span: Span,
1886
) -> Self {
1887
- let ty = tcx.bound_type_of(def_id).subst(tcx, substs);
+ let ty = tcx.mk_fn_def(def_id, substs);
1888
Operand::Constant(Box::new(Constant {
1889
span,
1890
user_ty: None,
0 commit comments