Remove hir::Crate::attrs.
This commit is contained in:
parent
c05c90275c
commit
a987bbb97c
15 changed files with 47 additions and 45 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue