about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-04-26 13:21:09 +0200
committerlcnr <rust@lcnr.de>2022-05-10 12:07:35 +0200
commitbae84a484cae0e13c250fa64e12f66d04f45c5f7 (patch)
treeb9a9b0cfffc4a72f8ff280e6f153390d7f1dc74f /src/librustdoc/html
parent6c8265dc56d221dce7f3535ecf8cdee6b9d2d618 (diff)
downloadrust-bae84a484cae0e13c250fa64e12f66d04f45c5f7.tar.gz
rust-bae84a484cae0e13c250fa64e12f66d04f45c5f7.zip
update rustdoc
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/render/print_item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index fbb3d3e4584..4951cd83af2 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -323,7 +323,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
 
             clean::ImportItem(ref import) => {
                 let (stab, stab_tags) = if let Some(import_def_id) = import.source.did {
-                    let ast_attrs = cx.tcx().get_attrs(import_def_id);
+                    let ast_attrs = cx.tcx().get_attrs_unchecked(import_def_id);
                     let import_attrs = Box::new(clean::Attributes::from_ast(ast_attrs, None));
 
                     // Just need an item with the correct def_id and attrs