Skip to content

Commit 817f45f

Browse files
committed
Querify clashing_extern_declarations lint.
1 parent ec5b882 commit 817f45f

File tree

6 files changed

+448
-410
lines changed

6 files changed

+448
-410
lines changed

compiler/rustc_interface/src/passes.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,9 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
850850
rustc_lint::BuiltinCombinedLateLintPass::new()
851851
});
852852
});
853+
},
854+
{
855+
tcx.ensure().clashing_extern_declarations(());
853856
}
854857
);
855858
},

compiler/rustc_lint/src/builtin.rs

Lines changed: 7 additions & 386 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)