diff options
| author | oli <oli@uhura.edef.eu> | 2020-10-26 19:00:40 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2021-01-04 21:40:38 +0000 |
| commit | cccd40f9b552367a8d1bb958b421a2e5e65c28ab (patch) | |
| tree | 7c894f6159623e06ef390fbf41f6d3f3c2e8263b /compiler/rustc_metadata/src/rmeta/decoder | |
| parent | 8e4fe6647f360f5175fd4984f3b5683606fe6879 (diff) | |
| download | rust-cccd40f9b552367a8d1bb958b421a2e5e65c28ab.tar.gz rust-cccd40f9b552367a8d1bb958b421a2e5e65c28ab.zip | |
Keep an unoptimized duplicate of `const fn` around
This allows CTFE to reliably detect UB, as otherwise optimizations may hide UB.
Diffstat (limited to 'compiler/rustc_metadata/src/rmeta/decoder')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs index b7f22885217..0398f9667b6 100644 --- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs +++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs @@ -115,6 +115,7 @@ provide! { <'tcx> tcx, def_id, other, cdata, }) } optimized_mir => { tcx.arena.alloc(cdata.get_optimized_mir(tcx, def_id.index)) } + mir_for_ctfe => { tcx.arena.alloc(cdata.get_mir_for_ctfe(tcx, def_id.index)) } promoted_mir => { tcx.arena.alloc(cdata.get_promoted_mir(tcx, def_id.index)) } mir_abstract_const => { cdata.get_mir_abstract_const(tcx, def_id.index) } unused_generic_params => { cdata.get_unused_generic_params(def_id.index) } |
