Remove hir::Crate::attrs.
This commit is contained in:
parent
c05c90275c
commit
a987bbb97c
15 changed files with 47 additions and 45 deletions
|
@ -38,7 +38,7 @@ fn lint_levels(tcx: TyCtxt<'_>, cnum: CrateNum) -> LintLevelMap {
|
|||
|
||||
builder.levels.id_to_set.reserve(krate.exported_macros.len() + 1);
|
||||
|
||||
let push = builder.levels.push(&krate.item.attrs, &store, true);
|
||||
let push = builder.levels.push(tcx.hir().attrs(hir::CRATE_HIR_ID), &store, true);
|
||||
builder.levels.register_id(hir::CRATE_HIR_ID);
|
||||
for macro_def in krate.exported_macros {
|
||||
builder.levels.register_id(macro_def.hir_id());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue