diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2025-03-12 10:19:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-12 10:19:26 -0700 |
| commit | f88f27aff008d0fc6be906ee7b4d1a55f8d59aef (patch) | |
| tree | 07814f454b900ec8ac01d026ce55fa643e641b22 /compiler/rustc_const_eval/src | |
| parent | 185dd2d01b87e7122427a10dab7e1d92b6976f6c (diff) | |
| parent | 256c27e748b477c1ec1c59bdc23afade5eec84aa (diff) | |
| download | rust-f88f27aff008d0fc6be906ee7b4d1a55f8d59aef.tar.gz rust-f88f27aff008d0fc6be906ee7b4d1a55f8d59aef.zip | |
Rollup merge of #137504 - nnethercote:remove-Map-4, r=Zalathar
Move methods from Map to TyCtxt, part 4. A follow-up to https://github.com/rust-lang/rust/pull/137350. r? ```@Zalathar```
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/check_consts/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/mod.rs b/compiler/rustc_const_eval/src/check_consts/mod.rs index 607cb2e497d..06ee7075170 100644 --- a/compiler/rustc_const_eval/src/check_consts/mod.rs +++ b/compiler/rustc_const_eval/src/check_consts/mod.rs @@ -81,7 +81,7 @@ pub fn rustc_allow_const_fn_unstable( def_id: LocalDefId, feature_gate: Symbol, ) -> bool { - let attrs = tcx.hir().attrs(tcx.local_def_id_to_hir_id(def_id)); + let attrs = tcx.hir_attrs(tcx.local_def_id_to_hir_id(def_id)); find_attr!(attrs, AttributeKind::AllowConstFnUnstable(syms) if syms.contains(&feature_gate)) } |
