Skip to content

Commit 8cf40c4

Browse files
committed
Don't attempt to polymorphize statics
Fixes rust-lang#124319
1 parent f437815 commit 8cf40c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ fn data_id_for_static(
258258
) -> DataId {
259259
let attrs = tcx.codegen_fn_attrs(def_id);
260260

261-
let instance = Instance::mono(tcx, def_id).polymorphize(tcx);
261+
let instance = Instance::mono(tcx, def_id);
262262
let symbol_name = tcx.symbol_name(instance).name;
263263

264264
if let Some(import_linkage) = attrs.import_linkage {

0 commit comments

Comments
 (0)