mirror of
https://github.com/servo/servo.git
synced 2025-06-16 12:24:29 +00:00
script: Feature-gate all crown support. (#35055)
* script: Feature-gate all crown support. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Use cfg(crown) instead of a cargo feature. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
1bd34a5781
commit
875e387004
223 changed files with 442 additions and 417 deletions
|
@ -2,13 +2,13 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![feature(register_tool)]
|
||||
#![cfg_attr(crown, 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)]
|
||||
#![cfg_attr(crown, register_tool(crown))]
|
||||
#![cfg_attr(any(doc, clippy), allow(unknown_lints))]
|
||||
#![deny(crown_is_not_used)]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue