diff options
| author | bors <bors@rust-lang.org> | 2020-05-16 07:14:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-16 07:14:52 +0000 |
| commit | 584252bfb053149b1405da0951cd855561694990 (patch) | |
| tree | e4fce6d805d9542f26af054f9ab40d6c6bea0814 /src/test/rustdoc-js-std/enum-option.js | |
| parent | 84539360498cab3c70a7c9114c0b8106c8e1b06b (diff) | |
| parent | e73ee41241240f740afc10a6fc16521215759ed7 (diff) | |
| download | rust-584252bfb053149b1405da0951cd855561694990.tar.gz rust-584252bfb053149b1405da0951cd855561694990.zip | |
Auto merge of #71665 - RalfJung:miri-intern-no-ice, r=oli-obk
Miri interning: replace ICEs by proper errors Fixes https://github.com/rust-lang/rust/issues/71316 I also did some refactoring, as I kept being confused by all the parameters to `intern_shallow`, some of which have invalid combinations (such as a mutable const). So instead `InternMode` now contains all the information that is needed and invalid combinations are ruled out by the type system. Also I removed interpreter errors from interning. We already ignored almost all errors, and the `ValidationFailure` errors that we handled separately actually cannot ever happen here. The only interpreter failure that was actually reachable was the UB on dangling pointers -- and arguably, a dangling raw pointer is not UB, so the error was not even correct. It's just that the rest of the compiler does not like "dangling" `AllocId`. It should be possible to review the 3 commits separately. r? @oli-obk Cc @rust-lang/wg-const-eval
Diffstat (limited to 'src/test/rustdoc-js-std/enum-option.js')
0 files changed, 0 insertions, 0 deletions
