Remove an unnecessary query + subst round
This commit is contained in:
@@ -1884,7 +1884,7 @@ impl<'tcx> Operand<'tcx> {
|
|||||||
substs: SubstsRef<'tcx>,
|
substs: SubstsRef<'tcx>,
|
||||||
span: Span,
|
span: Span,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let ty = tcx.bound_type_of(def_id).subst(tcx, substs);
|
let ty = tcx.mk_fn_def(def_id, substs);
|
||||||
Operand::Constant(Box::new(Constant {
|
Operand::Constant(Box::new(Constant {
|
||||||
span,
|
span,
|
||||||
user_ty: None,
|
user_ty: None,
|
||||||
|
|||||||
Reference in New Issue
Block a user