rust/compiler
bors 39e20f1ae5 Auto merge of #86255 - Smittyvb:mir-alloc-oom, r=RalfJung,oli-obk
Support allocation failures when interpreting MIR

This closes #79601 by handling the case where memory allocation fails during MIR interpretation, and translates that failure into an `InterpError`. The error message is "tried to allocate more memory than available to compiler" to make it clear that the memory shortage is happening at compile-time by the compiler itself, and that it is not a runtime issue.

Now that memory allocation can fail, it would be neat if Miri could simulate low-memory devices to make it easy to see how much memory a Rust program needs.

Note that this breaks Miri because it assumes that allocation can never fail.
2021-07-04 09:15:36 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #86190 - asquared31415:extern-main-86110-fix, r=varkor 2021-07-01 06:39:37 +00:00
rustc_ast_lowering Arena-allocate Crate during lowering. 2021-06-30 20:31:56 +02:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_builtin_macros
rustc_codegen_cranelift Make vtable_allocation always succeed 2021-07-03 11:14:19 -04:00
rustc_codegen_llvm Auto merge of #85269 - dpaoliello:dpaoliello/DebugSymbols, r=michaelwoerister 2021-07-02 17:19:32 +00:00
rustc_codegen_ssa Make vtable_allocation always succeed 2021-07-03 11:14:19 -04:00
rustc_data_structures
rustc_driver Auto merge of #80182 - in42:stack_trace, r=tmandry 2021-07-02 05:40:51 +00:00
rustc_error_codes Rollup merge of #86148 - FabianWolff:issue-85855, r=varkor 2021-07-02 06:20:28 +09:00
rustc_errors
rustc_expand add track_path::path fn for proc-macro usage 2021-07-02 07:13:19 +02:00
rustc_feature Panic on trying to find non-feature incompleteness 2021-06-28 18:37:54 -04:00
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty
rustc_incremental Simplify DepGraph creation. 2021-06-30 20:31:52 +02:00
rustc_index
rustc_infer
rustc_interface add track_path::path fn for proc-macro usage 2021-07-02 07:13:19 +02:00
rustc_lexer
rustc_lint Warn when rustdoc:: group is omitted from lint names 2021-07-03 15:32:09 -04:00
rustc_lint_defs Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_llvm
rustc_macros
rustc_metadata Auto merge of #86749 - bjorn3:link_info_refactor_part1, r=petrochenkov 2021-07-01 19:00:08 +00:00
rustc_middle Auto merge of #86255 - Smittyvb:mir-alloc-oom, r=RalfJung,oli-obk 2021-07-04 09:15:36 +00:00
rustc_mir Auto merge of #86255 - Smittyvb:mir-alloc-oom, r=RalfJung,oli-obk 2021-07-04 09:15:36 +00:00
rustc_mir_build
rustc_parse Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_parse_format
rustc_passes Auto merge of #86571 - fee1-dead:const-trait-impl-fix, r=jackh726 2021-07-03 07:24:24 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve
rustc_save_analysis Rename all_crate_nums query to crates and remove useless wrapper 2021-07-01 16:51:11 +02:00
rustc_serialize
rustc_session Rollup merge of #84029 - drahnr:master, r=petrochenkov 2021-07-03 03:15:07 +09:00
rustc_span Auto merge of #86778 - tmiasko:fast-multiline, r=davidtwco 2021-07-03 16:06:35 +00:00
rustc_symbol_mangling Skip layout query when computing integer type size during mangling 2021-07-01 12:36:44 +02:00
rustc_target Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
rustc_trait_selection Auto merge of #85090 - Aaron1011:type-outlives-global, r=matthewjasper,jackh726 2021-07-03 22:42:58 +00:00
rustc_traits
rustc_ty_utils Simplify visit_region implementation 2021-07-03 02:21:19 +09:00
rustc_type_ir
rustc_typeck Auto merge of #86795 - JohnTitor:fix-bind, r=jackh726 2021-07-03 01:42:06 +00:00