Skip to content

Commit

Permalink
Combine all builtin early lints and use a separate walk for plugin li…
Browse files Browse the repository at this point in the history
…nts. Add a -Z no-interleave-lints option to allow benchmarking lints
  • Loading branch information
Zoxc committed Jan 19, 2019
1 parent f001287 commit beb0c74
Show file tree
Hide file tree
Showing 10 changed files with 551 additions and 216 deletions.
4 changes: 4 additions & 0 deletions src/librustc/lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ declare_lint! {
pub struct HardwiredLints;

impl LintPass for HardwiredLints {
fn name(&self) -> &'static str {
"HardwiredLints"
}

fn get_lints(&self) -> LintArray {
lint_array!(
ILLEGAL_FLOATING_POINT_LITERAL_PATTERN,
Expand Down
Loading

0 comments on commit beb0c74

Please sign in to comment.