no need to polymorphize

This commit is contained in:
Bastian Kauschke 2020-07-22 13:01:55 +02:00
parent 6a9c5fb4cc
commit 40b6bccd64

View File

@ -1197,7 +1197,6 @@ fn collect_miri<'tcx>(
}
}
GlobalAlloc::Function(fn_instance) => {
let fn_instance = fn_instance.polymorphize(tcx);
if should_codegen_locally(tcx, &fn_instance) {
trace!("collecting {:?} with {:#?}", alloc_id, fn_instance);
output.push(create_fn_mono_item(tcx, fn_instance, DUMMY_SP));