Remove hir::MacroDef::attrs.
This commit is contained in:
parent
fd8a021757
commit
c05c90275c
5 changed files with 6 additions and 7 deletions
|
@ -881,7 +881,8 @@ impl Visitor<'tcx> for EmbargoVisitor<'tcx> {
|
|||
|
||||
fn visit_macro_def(&mut self, md: &'tcx hir::MacroDef<'tcx>) {
|
||||
// Non-opaque macros cannot make other items more accessible than they already are.
|
||||
if attr::find_transparency(&self.tcx.sess, &md.attrs, md.ast.macro_rules).0
|
||||
let attrs = self.tcx.hir().attrs(md.hir_id());
|
||||
if attr::find_transparency(&self.tcx.sess, &attrs, md.ast.macro_rules).0
|
||||
!= Transparency::Opaque
|
||||
{
|
||||
// `#[macro_export]`-ed `macro_rules!` are `Public` since they
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue