Skip to content

Commit eb900dd

Browse files
committed
don't arena allocate bools
1 parent 6f9bb55 commit eb900dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ provide! { <'tcx> tcx, def_id, other, cdata,
111111
bug!("coerce_unsized_info: `{:?}` is missing its info", def_id);
112112
})
113113
}
114-
is_trivial_mir => { *tcx.arena.alloc(cdata.get_is_trivial_mir(tcx, def_id.index)) }
114+
is_trivial_mir => { cdata.get_is_trivial_mir(tcx, def_id.index) }
115115
optimized_mir => { tcx.arena.alloc(cdata.get_optimized_mir(tcx, def_id.index)) }
116116
promoted_mir => { tcx.arena.alloc(cdata.get_promoted_mir(tcx, def_id.index)) }
117117
mir_abstract_const => { cdata.get_mir_abstract_const(tcx, def_id.index) }

0 commit comments

Comments
 (0)