mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +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
|
@ -1,16 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
|
||||
use rustc_lint::LintStore;
|
||||
use rustc_session::declare_lint;
|
||||
|
||||
declare_lint! {
|
||||
CROWN_IS_NOT_USED,
|
||||
Deny,
|
||||
"Issues a rustc warning if crown is not used in compilation"
|
||||
}
|
||||
|
||||
pub fn register(lint_store: &mut LintStore) {
|
||||
lint_store.register_lints(&[CROWN_IS_NOT_USED]);
|
||||
}
|
|
@ -35,8 +35,6 @@ mod unrooted_must_root;
|
|||
#[cfg(feature = "trace_in_no_trace_lint")]
|
||||
mod trace_in_no_trace;
|
||||
|
||||
mod crown_is_not_used;
|
||||
|
||||
struct MyCallbacks;
|
||||
|
||||
impl Callbacks for MyCallbacks {
|
||||
|
@ -51,7 +49,6 @@ impl Callbacks for MyCallbacks {
|
|||
return;
|
||||
}
|
||||
|
||||
crown_is_not_used::register(lint_store);
|
||||
#[cfg(feature = "unrooted_must_root_lint")]
|
||||
unrooted_must_root::register(lint_store);
|
||||
#[cfg(feature = "trace_in_no_trace_lint")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue