1
Fork 0

Lint ambiguous glob re-exports

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2023-03-20 03:11:28 +08:00
parent ab9bb3ea36
commit 1f67949f0e
No known key found for this signature in database
GPG key ID: C5FD5D32014FDB47
11 changed files with 228 additions and 26 deletions

View file

@ -529,6 +529,16 @@ pub enum BuiltinLintDiagnostics {
vis_span: Span,
ident_span: Span,
},
AmbiguousGlobReexports {
/// The name for which collision(s) have occurred.
name: String,
/// The name space for whihc the collision(s) occurred in.
namespace: String,
/// Span where the name is first re-exported.
first_reexport_span: Span,
/// Span where the same name is also re-exported.
duplicate_reexport_span: Span,
},
}
/// Lints that are buffered up early on in the `Session` before the