Remove an unnecessary query + subst round
This commit is contained in:
parent
19a1192d42
commit
bd40c10751
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue