mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
crown: Do not warn about crown for rustdoc or clippy (#31805)
Fixes #31804.
This commit is contained in:
parent
32a2b06073
commit
755701f4f6
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue