rust/compiler
bors 969a6c2481 Auto merge of #86674 - Aaron1011:new-querify-limits, r=michaelwoerister
Query-ify global limit attribute handling

Currently, we read various 'global limits' from inner attributes the crate root (`recursion_limit`, `move_size_limit`, `type_length_limit`, `const_eval_limit`). These limits are then stored in `Sessions`, allowing them to be access from a `TyCtxt` without registering a dependency on the crate root attributes.

This PR moves the calculation of these global limits behind queries, so that we properly track dependencies on crate root attributes. During the setup of macro expansion (before we've created a `TyCtxt`), we need to access the recursion limit, which is now done by directly calling into the code shared by the normal query implementations.
2021-07-05 16:30:53 +00:00
..
rustc use jemallocator in rustc/rustdoc 2021-04-04 14:10:26 -07:00
rustc_apfloat Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
rustc_arena Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
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 Auto merge of #86164 - FabianWolff:issue-86053, r=davidtwco 2021-06-17 06:34:12 +00:00
rustc_ast_pretty rustc_ast_pretty: Don't print space after $ 2021-07-03 16:35:18 -07:00
rustc_attr remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
rustc_builtin_macros Auto merge of #86599 - Amanieu:asm_raw, r=nagisa 2021-06-25 20:44:28 +00:00
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_data_structures: Drop unused dependency on crossbeam-utils 2021-06-25 01:03:16 -07:00
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 #86477 - tlyu:e0716-clarification, r=JohnTitor 2021-07-05 07:13:22 +09:00
rustc_errors Update to new bootstrap compiler 2021-06-28 11:30:49 -04:00
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 Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
rustc_hir Update to new bootstrap compiler 2021-06-28 11:30:49 -04:00
rustc_hir_pretty Rollup merge of #86358 - klensy:pp-loop, r=Mark-Simulacrum 2021-06-29 00:26:55 +09:00
rustc_incremental Simplify DepGraph creation. 2021-06-30 20:31:52 +02:00
rustc_index Remove unused feature gates 2021-05-31 13:55:43 +02:00
rustc_infer remove unused Option 2021-07-04 11:09:32 -04:00
rustc_interface Combine individual limit queries into single limits query 2021-07-04 13:02:51 -05:00
rustc_lexer Rename 'bad prefix' to 'unknown prefix'. 2021-06-26 23:11:14 +08:00
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 Auto merge of #84171 - ricobbe:raw-dylib-via-llvm, r=petrochenkov 2021-06-06 03:59:17 +00:00
rustc_macros Lint for unused borrows as part of UNUSED_MUST_USE 2021-06-18 15:09:40 +08:00
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 #86674 - Aaron1011:new-querify-limits, r=michaelwoerister 2021-07-05 16:30:53 +00:00
rustc_mir Auto merge of #86674 - Aaron1011:new-querify-limits, r=michaelwoerister 2021-07-05 16:30:53 +00:00
rustc_mir_build fixup! Editon 2021 enables precise capture 2021-06-27 21:46:55 -04:00
rustc_parse Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_parse_format remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
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 Use () for plugin_registrar_fn. 2021-05-12 13:58:43 +02:00
rustc_privacy Add more tests + visit_ty in some places 2021-06-09 19:28:41 +01:00
rustc_query_impl rustc_query_impl: Remove unused dependencies 2021-06-25 01:13:00 -07:00
rustc_query_system Auto merge of #85154 - cjgillot:lessfn, r=bjorn3 2021-06-15 14:52:58 +00:00
rustc_resolve Fix garbled suggestion for missing lifetime specifier 2021-06-28 00:56:24 +02:00
rustc_save_analysis Rename all_crate_nums query to crates and remove useless wrapper 2021-07-01 16:51:11 +02:00
rustc_serialize Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00
rustc_session Combine individual limit queries into single limits query 2021-07-04 13:02:51 -05: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 #86674 - Aaron1011:new-querify-limits, r=michaelwoerister 2021-07-05 16:30:53 +00:00
rustc_traits Combine individual limit queries into single limits query 2021-07-04 13:02:51 -05:00
rustc_ty_utils Combine individual limit queries into single limits query 2021-07-04 13:02:51 -05:00
rustc_type_ir Remove unused feature gates 2021-05-31 13:55:43 +02:00
rustc_typeck Auto merge of #86866 - nikomatsakis:issue-84841, r=oli-obk 2021-07-04 17:39:37 +00:00