Skip to content

Commit

Permalink
crown: Do not warn about crown for rustdoc or clippy (#31805)
Browse files Browse the repository at this point in the history
Fixes #31804.
  • Loading branch information
mrobinson committed Mar 21, 2024
1 parent 32a2b06 commit 755701f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/script/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
#![feature(register_tool)]
#![deny(unsafe_code)]
#![doc = "The script crate contains all matters DOM."]
// Register the linter `crown`, which is the Servo-specific linter for the script
// crate. Issue a warning if `crown` is not being used to compile, but not when
// building rustdoc or running clippy.
#![register_tool(crown)]
// Issue a warning if `crown` cannot be found.
#![warn(unknown_lints)]
#![cfg_attr(any(doc, clippy, feature = "cargo-clippy"), allow(unknown_lints))]
#![deny(crown_is_not_used)]

// These are used a lot so let's keep them for now
Expand Down

0 comments on commit 755701f

Please sign in to comment.