mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
Make the crown disabled warning clearer and less scary (#37535)
Instead of printing a Rust compilation warning, simply print a message before every build (when using `mach`) that shows the build configuration and whether or not `crown` is enabled. Fixes #32597. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
824755d868
commit
f0eb29206d
5 changed files with 4 additions and 30 deletions
|
@ -5,12 +5,8 @@
|
|||
#![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 the linter `crown`, which is the Servo-specific linter for the script crate.
|
||||
#![cfg_attr(crown, register_tool(crown))]
|
||||
#![cfg_attr(any(doc, clippy), allow(unknown_lints))]
|
||||
#![deny(crown_is_not_used)]
|
||||
|
||||
// These are used a lot so let's keep them for now
|
||||
#[macro_use]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue