···3333 });
34343535 chanspec = {
3636- date = "2021-11-01";
3636+ date = "2021-12-01";
3737 channel = "nightly";
3838- sha256 = "2BmxGawDNjXHJvnQToxmErMGgEPOfVzUvxhkvuixHYU="; # set zeros after modifying channel or date
3838+ sha256 = "DhIP1w63/hMbWlgElJGBumEK/ExFWCdLaeBV5F8uWHc="; # set zeros after modifying channel or date
3939 };
4040 rustChannel = p: (fenix.overlay p p).fenix.toolchainOf chanspec;
4141
+3-1
lib/src/lib.rs
···11#![recursion_limit = "1024"]
22mod lints;
33mod make;
44+pub mod session;
45mod utils;
5667pub use lints::LINTS;
88+use session::SessionInfo;
79810use rnix::{parser::ParseError, SyntaxElement, SyntaxKind, TextRange};
911use std::{convert::Into, default::Default};
···221223/// Lint logic is defined via this trait. Do not implement manually,
222224/// look at the `lint` attribute macro instead for implementing rules
223225pub trait Rule {
224224- fn validate(&self, node: &SyntaxElement) -> Option<Report>;
226226+ fn validate(&self, node: &SyntaxElement, sess: &SessionInfo) -> Option<Report>;
225227}
226228227229/// Contains information about the lint itself. Do not implement manually,