1
Fork 0
rust/compiler/rustc_trait_selection/src
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
..
traits Auto merge of #86674 - Aaron1011:new-querify-limits, r=michaelwoerister 2021-07-05 16:30:53 +00:00
autoderef.rs Combine individual limit queries into single limits query 2021-07-04 13:02:51 -05:00
infer.rs Fix use of bare trait objects everywhere 2021-03-18 02:18:58 +03:00
lib.rs remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
opaque_types.rs add various coments to explain how the code works 2021-06-18 11:44:56 -04:00