Make forward compatibility lint deprecated_cfg_attr_crate_type_name deny by default
This commit is contained in:
parent
c11207ec89
commit
152c851f89
4 changed files with 9 additions and 16 deletions
|
@ -3068,7 +3068,7 @@ declare_lint! {
|
|||
///
|
||||
/// ### Example
|
||||
///
|
||||
/// ```rust
|
||||
/// ```rust,compile_fail
|
||||
/// #![cfg_attr(debug_assertions, crate_type = "lib")]
|
||||
/// ```
|
||||
///
|
||||
|
@ -3088,7 +3088,7 @@ declare_lint! {
|
|||
/// rustc instead of `#![cfg_attr(..., crate_type = "...")]` and
|
||||
/// `--crate-name` instead of `#![cfg_attr(..., crate_name = "...")]`.
|
||||
pub DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME,
|
||||
Warn,
|
||||
Deny,
|
||||
"detects usage of `#![cfg_attr(..., crate_type/crate_name = \"...\")]`",
|
||||
@future_incompatible = FutureIncompatibleInfo {
|
||||
reference: "issue #91632 <https://github.com/rust-lang/rust/issues/91632>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue