We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a46a4f commit 4b740acCopy full SHA for 4b740ac
compiler/rustc_lint/src/builtin.rs
@@ -2596,6 +2596,11 @@ declare_lint! {
2596
}
2597
2598
pub struct ClashingExternDeclarations {
2599
+ /// Map of function symbol name to the first-seen hir id for that symbol name.. If seen_decls
2600
+ /// contains an entry for key K, it means a symbol with name K has been seen by this lint and
2601
+ /// the symbol should be reported as a clashing declaration.
2602
+ // FIXME: Technically, we could just store a &'tcx str here without issue; however, the
2603
+ // `impl_lint_pass` macro doesn't currently support lints parametric over a lifetime.
2604
seen_decls: FxHashMap<String, HirId>,
2605
2606
0 commit comments