1
Fork 0

Querify early_lint_checks.

This commit is contained in:
Camille GILLOT 2023-03-06 10:56:53 +00:00
parent b7e2b049f3
commit c90fc105cb
7 changed files with 38 additions and 19 deletions

View file

@ -526,6 +526,7 @@ pub enum BuiltinLintDiagnostics {
/// Lints that are buffered up early on in the `Session` before the
/// `LintLevels` is calculated.
#[derive(Debug)]
pub struct BufferedEarlyLint {
/// The span of code that we are linting on.
pub span: MultiSpan,
@ -544,7 +545,7 @@ pub struct BufferedEarlyLint {
pub diagnostic: BuiltinLintDiagnostics,
}
#[derive(Default)]
#[derive(Default, Debug)]
pub struct LintBuffer {
pub map: FxIndexMap<NodeId, Vec<BufferedEarlyLint>>,
}