Skip to content

Commit c6454dd

Browse files
committed
don't polymorphize without a reason to
1 parent ef5808a commit c6454dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_mir_build/src/check_tail_calls.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ impl<'tcx> TailCallCkVisitor<'_, 'tcx> {
153153
fn needs_location(&self, ty: Ty<'tcx>) -> bool {
154154
if let &ty::FnDef(did, substs) = ty.kind() {
155155
let instance =
156-
ty::Instance::expect_resolve(self.tcx, self.typing_env, did, substs, DUMMY_SP)
157-
.polymorphize(self.tcx);
156+
ty::Instance::expect_resolve(self.tcx, self.typing_env, did, substs, DUMMY_SP);
158157

159158
instance.def.requires_caller_location(self.tcx)
160159
} else {

0 commit comments

Comments
 (0)