about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/optimize/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-05 16:30:53 +0000
committerbors <bors@rust-lang.org>2021-07-05 16:30:53 +0000
commit969a6c2481c41cea793708f7fdd2f96a3397143f (patch)
tree06dc7335d5ed67249de1ad8285e59e2fb8ca2317 /compiler/rustc_codegen_cranelift/src/optimize/mod.rs
parent6e9b3696d494a32d493585f96f0671123066cd58 (diff)
parent7e5a88a56cf14bf691c25cad04837e82c4c601f1 (diff)
downloadrust-969a6c2481c41cea793708f7fdd2f96a3397143f.tar.gz
rust-969a6c2481c41cea793708f7fdd2f96a3397143f.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/optimize/mod.rs')
0 files changed, 0 insertions, 0 deletions