Skip to content

Commit

Permalink
Oops, inverted condition, fix that
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Oct 14, 2021
1 parent e252274 commit 7d6cfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/visit_ast.rs
Expand Up @@ -97,7 +97,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
if let Res::Def(DefKind::Macro(_), def_id) = export.res {
if let Some(local_def_id) = def_id.as_local() {
if self.cx.tcx.has_attr(def_id, sym::macro_export) {
if !inserted.insert(def_id) {
if inserted.insert(def_id) {
let hir_id = self.cx.tcx.hir().local_def_id_to_hir_id(local_def_id);
let item = self.cx.tcx.hir().expect_item(hir_id);
top_level_module.items.push((item, None));
Expand Down

0 comments on commit 7d6cfb7

Please sign in to comment.