Skip to content

Commit b572938

Browse files
Urgaupietroalbini
authored andcommitted
Oops, inverted condition, fix that
1 parent f96a40f commit b572938

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
@@ -96,7 +96,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
9696
if let Res::Def(DefKind::Macro(_), def_id) = export.res {
9797
if let Some(local_def_id) = def_id.as_local() {
9898
if self.cx.tcx.has_attr(def_id, sym::macro_export) {
99-
if !inserted.insert(def_id) {
99+
if inserted.insert(def_id) {
100100
let hir_id = self.cx.tcx.hir().local_def_id_to_hir_id(local_def_id);
101101
let item = self.cx.tcx.hir().expect_item(hir_id);
102102
top_level_module.items.push((item, None));

0 commit comments

Comments
 (0)