mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
WIP: attempt to fix the undocument re-export issue
This commit is contained in:
parent
28e9c6723a
commit
dd15f410df
@ -832,7 +832,18 @@ impl Visitor<'tcx> for EmbargoVisitor<'tcx> {
|
||||
}
|
||||
|
||||
fn visit_macro_def(&mut self, md: &'tcx hir::MacroDef<'tcx>) {
|
||||
if attr::find_transparency(&self.tcx.sess, &md.attrs, md.ast.macro_rules).0
|
||||
// HACK (or fix?): a
|
||||
// ```rust,ignore (dummy example)
|
||||
// mod private {
|
||||
// #[rustc_macro_transparency(semitransparent)]
|
||||
// pub macro m { … }
|
||||
// }
|
||||
// ```
|
||||
// is *not* `Public`ly reachable and yet this shortcut would express
|
||||
// that.
|
||||
// FIXME!
|
||||
if md.ast.macro_rules
|
||||
&& attr::find_transparency(&self.tcx.sess, &md.attrs, md.ast.macro_rules).0
|
||||
!= Transparency::Opaque
|
||||
{
|
||||
self.update(md.hir_id, Some(AccessLevel::Public));
|
||||
|
Loading…
Reference in New Issue
Block a user