about summary refs log tree commit diff
path: root/compiler/rustc_hir_pretty/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-11-26 23:38:53 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-03-09 19:22:55 +0100
commita987bbb97c12235b4abb9d4fa742ab1f40401df5 (patch)
tree1efde67058d33c33c83b5cfbcb8569d57bc022ee /compiler/rustc_hir_pretty/src
parentc05c90275c264a800f15ca7a52019c0874ad58a8 (diff)
downloadrust-a987bbb97c12235b4abb9d4fa742ab1f40401df5.tar.gz
rust-a987bbb97c12235b4abb9d4fa742ab1f40401df5.zip
Remove hir::Crate::attrs.
Diffstat (limited to 'compiler/rustc_hir_pretty/src')
-rw-r--r--compiler/rustc_hir_pretty/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs
index 416918e3344..0eb1dc742ba 100644
--- a/compiler/rustc_hir_pretty/src/lib.rs
+++ b/compiler/rustc_hir_pretty/src/lib.rs
@@ -168,7 +168,7 @@ pub fn print_crate<'a>(
     // When printing the AST, we sometimes need to inject `#[no_std]` here.
     // Since you can't compile the HIR, it's not necessary.
 
-    s.print_mod(&krate.item.module, &krate.item.attrs);
+    s.print_mod(&krate.item.module, krate.attrs[hir::CRATE_HIR_ID]);
     s.print_remaining_comments();
     s.s.eof()
 }