Skip to content

Commit 40b6bcc

Browse files
committed
no need to polymorphize
1 parent 6a9c5fb commit 40b6bcc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc_mir/monomorphize/collector.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,6 @@ fn collect_miri<'tcx>(
11971197
}
11981198
}
11991199
GlobalAlloc::Function(fn_instance) => {
1200-
let fn_instance = fn_instance.polymorphize(tcx);
12011200
if should_codegen_locally(tcx, &fn_instance) {
12021201
trace!("collecting {:?} with {:#?}", alloc_id, fn_instance);
12031202
output.push(create_fn_mono_item(tcx, fn_instance, DUMMY_SP));

0 commit comments

Comments
 (0)