Skip to content

Commit d46c106

Browse files
UrgauMark-Simulacrum
authored andcommitted
Oops, inverted condition, fix that
1 parent 1ed389d commit d46c106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/visit_ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
9797
if let Res::Def(DefKind::Macro(_), def_id) = export.res {
9898
if let Some(local_def_id) = def_id.as_local() {
9999
if self.cx.tcx.has_attr(def_id, sym::macro_export) {
100-
if !inserted.insert(def_id) {
100+
if inserted.insert(def_id) {
101101
let hir_id = self.cx.tcx.hir().local_def_id_to_hir_id(local_def_id);
102102
let item = self.cx.tcx.hir().expect_item(hir_id);
103103
top_level_module.items.push((item, None));

0 commit comments

Comments
 (0)