mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Remove an unnecessary query + subst round
This commit is contained in:
parent
19a1192d42
commit
bd40c10751
@ -1884,7 +1884,7 @@ impl<'tcx> Operand<'tcx> {
|
||||
substs: SubstsRef<'tcx>,
|
||||
span: Span,
|
||||
) -> 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 {
|
||||
span,
|
||||
user_ty: None,
|
||||
|
Loading…
Reference in New Issue
Block a user