diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-31 09:08:46 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-31 15:17:20 +1000 |
| commit | 0b3c980c241ccbd0c1b8b90f4f7b62e618bd3f93 (patch) | |
| tree | 72a37d1fb3224b5020f0b0b4d10a54a177f0be03 /src/librustdoc/clean/inline.rs | |
| parent | a949c47f0d3c0fb0b444c25cb2eb3323fcc845e6 (diff) | |
| download | rust-0b3c980c241ccbd0c1b8b90f4f7b62e618bd3f93.tar.gz rust-0b3c980c241ccbd0c1b8b90f4f7b62e618bd3f93.zip | |
Remove `TyCtxt::get_attrs_unchecked`.
It's identical to `TyCtxt::get_all_attrs` except it takes `DefId` instead of `impl Into<DefIf>`.
Diffstat (limited to 'src/librustdoc/clean/inline.rs')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 9603399f235..8c0f897c992 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -217,7 +217,7 @@ pub(crate) fn try_inline_glob( } pub(crate) fn load_attrs<'hir>(cx: &DocContext<'hir>, did: DefId) -> &'hir [hir::Attribute] { - cx.tcx.get_attrs_unchecked(did) + cx.tcx.get_all_attrs(did) } pub(crate) fn item_relative_path(tcx: TyCtxt<'_>, def_id: DefId) -> Vec<Symbol> { |
