Skip to content

Commit

Permalink
Auto merge of #57726 - Zoxc:combine-early-lints, r=estebank
Browse files Browse the repository at this point in the history
Combine all builtin early lints

This also adds a -Z no-interleave-lints option to allow benchmarking lints.

r? @estebank
  • Loading branch information
bors committed Jan 26, 2019
2 parents f95834b + 9b5535a commit ccd428b
Show file tree
Hide file tree
Showing 17 changed files with 579 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 @@ -380,6 +380,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 ccd428b

Please sign in to comment.