about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-07-22 13:01:55 +0200
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-07-22 17:02:59 +0200
commit40b6bccd6431e5d3032279ec5f6d269cacc7fe9b (patch)
treeaf8c9b13e3cfbc20bedff793f257b0e2fc8c4a6c
parent6a9c5fb4cc499bc828422e32689c8f098542f821 (diff)
downloadrust-40b6bccd6431e5d3032279ec5f6d269cacc7fe9b.tar.gz
rust-40b6bccd6431e5d3032279ec5f6d269cacc7fe9b.zip
no need to polymorphize
-rw-r--r--src/librustc_mir/monomorphize/collector.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustc_mir/monomorphize/collector.rs b/src/librustc_mir/monomorphize/collector.rs
index 30d25270f03..0b5f27fc17a 100644
--- a/src/librustc_mir/monomorphize/collector.rs
+++ b/src/librustc_mir/monomorphize/collector.rs
@@ -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));