diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-07-04 13:02:51 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-07-04 13:02:51 -0500 |
| commit | 7e5a88a56cf14bf691c25cad04837e82c4c601f1 (patch) | |
| tree | a84ecd36f97652e54076f32ac30666fac492ddab /compiler/rustc_interface/src | |
| parent | ff15b5e2c76bb5c0fdd64e49ee76fbd2023415bd (diff) | |
| download | rust-7e5a88a56cf14bf691c25cad04837e82c4c601f1.tar.gz rust-7e5a88a56cf14bf691c25cad04837e82c4c601f1.zip | |
Combine individual limit queries into single `limits` query
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index a5d97ef4111..a7bfffbc38a 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -872,13 +872,11 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { }); }, { - // Mark the attributes as used, and ensure that - // they're not ill-formed. We force these queries - // to run, since they might not otherwise get called. - tcx.ensure().recursion_limit(()); - tcx.ensure().move_size_limit(()); - tcx.ensure().type_length_limit(()); - tcx.ensure().const_eval_limit(()); + // We force these querie to run, + // since they might not otherwise get called. + // This marks the corresponding crate-level attributes + // as used, and ensures that their values are valid. + tcx.ensure().limits(()); } ); }); |
