about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/limits.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-02-18 04:26:30 +0000
committerbors <bors@rust-lang.org>2025-02-18 04:26:30 +0000
commitaaa861493456e8a10e552dd208f85486de772007 (patch)
tree1d0a87efba6dcbd2965ed32f05d25f4950363883 /compiler/rustc_interface/src/limits.rs
parentde91711756133f11f7861dd099c001eaff0aafaa (diff)
parentfd7b4bf4e19b19ebf9b536790ec1668a3e50fe6f (diff)
downloadrust-aaa861493456e8a10e552dd208f85486de772007.tar.gz
rust-aaa861493456e8a10e552dd208f85486de772007.zip
Auto merge of #137162 - nnethercote:remove-Map-2, r=Zalathar
Move methods from `Map` to `TyCtxt`, part 2.

Continuing the work started in #136466.

Every method gains a `hir_` prefix, though for the ones that already have a `par_` or `try_par_` prefix I added the `hir_` after that.

r? Zalathar
Diffstat (limited to 'compiler/rustc_interface/src/limits.rs')
-rw-r--r--compiler/rustc_interface/src/limits.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_interface/src/limits.rs b/compiler/rustc_interface/src/limits.rs
index 3de513797e3..8f01edec09f 100644
--- a/compiler/rustc_interface/src/limits.rs
+++ b/compiler/rustc_interface/src/limits.rs
@@ -20,21 +20,21 @@ use crate::errors::LimitInvalid;
 
 pub(crate) fn provide(providers: &mut Providers) {
     providers.limits = |tcx, ()| Limits {
-        recursion_limit: get_recursion_limit(tcx.hir().krate_attrs(), tcx.sess),
+        recursion_limit: get_recursion_limit(tcx.hir_krate_attrs(), tcx.sess),
         move_size_limit: get_limit(
-            tcx.hir().krate_attrs(),
+            tcx.hir_krate_attrs(),
             tcx.sess,
             sym::move_size_limit,
             Limit::new(tcx.sess.opts.unstable_opts.move_size_limit.unwrap_or(0)),
         ),
         type_length_limit: get_limit(
-            tcx.hir().krate_attrs(),
+            tcx.hir_krate_attrs(),
             tcx.sess,
             sym::type_length_limit,
             Limit::new(2usize.pow(24)),
         ),
         pattern_complexity_limit: get_limit(
-            tcx.hir().krate_attrs(),
+            tcx.hir_krate_attrs(),
             tcx.sess,
             sym::pattern_complexity_limit,
             Limit::unlimited(),