Use a function to access the Hir map to be able to turn it into a query later
This commit is contained in:
parent
367e783e6f
commit
a70babed03
160 changed files with 1220 additions and 1210 deletions
|
@ -62,7 +62,7 @@ pub fn assert_module_sources<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
|
|||
available_cgus
|
||||
};
|
||||
|
||||
for attr in &tcx.hir.krate().attrs {
|
||||
for attr in &tcx.hir().krate().attrs {
|
||||
ams.check_attr(attr);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue