1
Fork 0

Disallow setting built-in cfgs via set the command-line

This commit is contained in:
Urgau 2024-06-08 13:26:37 +02:00
parent eedb32dd12
commit c0c57b3e29
41 changed files with 436 additions and 73 deletions

View file

@ -2379,6 +2379,16 @@ pub mod unexpected_cfg_value {
}
}
#[derive(LintDiagnostic)]
#[diag(lint_unexpected_builtin_cfg)]
#[note(lint_controlled_by)]
#[note(lint_incoherent)]
pub struct UnexpectedBuiltinCfg {
pub(crate) cfg: String,
pub(crate) cfg_name: Symbol,
pub(crate) controlled_by: &'static str,
}
#[derive(LintDiagnostic)]
#[diag(lint_macro_use_deprecated)]
#[help]