Skip to content

Commit

Permalink
Suppress unknown_lints warning on old rustc
Browse files Browse the repository at this point in the history
    warning: unknown lint: `unexpected_cfgs`
      --> build.rs:37:10
       |
    37 | #![allow(unexpected_cfgs)]
       |          ^^^^^^^^^^^^^^^
       |
       = note: `#[warn(unknown_lints)]` on by default
  • Loading branch information
dtolnay committed May 7, 2024
1 parent 2660d30 commit 5e02f52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
// macro API and catching a panic if it isn't available. Enabled on Rust
// 1.57+.

#![allow(unknown_lints)]
#![allow(unexpected_cfgs)]

use std::env;
Expand Down

0 comments on commit 5e02f52

Please sign in to comment.