@@ -35,7 +35,6 @@ declare_lint_pass! {
3535 DEAD_CODE ,
3636 DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK ,
3737 DEPRECATED ,
38- DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
3938 DEPRECATED_IN_FUTURE ,
4039 DEPRECATED_SAFE_2024 ,
4140 DEPRECATED_WHERE_CLAUSE_LOCATION ,
@@ -3207,42 +3206,6 @@ declare_lint! {
32073206 "detects large moves or copies" ,
32083207}
32093208
3210- declare_lint ! {
3211- /// The `deprecated_cfg_attr_crate_type_name` lint detects uses of the
3212- /// `#![cfg_attr(..., crate_type = "...")]` and
3213- /// `#![cfg_attr(..., crate_name = "...")]` attributes to conditionally
3214- /// specify the crate type and name in the source code.
3215- ///
3216- /// ### Example
3217- ///
3218- /// ```rust,compile_fail
3219- /// #![cfg_attr(debug_assertions, crate_type = "lib")]
3220- /// ```
3221- ///
3222- /// {{produces}}
3223- ///
3224- ///
3225- /// ### Explanation
3226- ///
3227- /// The `#![crate_type]` and `#![crate_name]` attributes require a hack in
3228- /// the compiler to be able to change the used crate type and crate name
3229- /// after macros have been expanded. Neither attribute works in combination
3230- /// with Cargo as it explicitly passes `--crate-type` and `--crate-name` on
3231- /// the commandline. These values must match the value used in the source
3232- /// code to prevent an error.
3233- ///
3234- /// To fix the warning use `--crate-type` on the commandline when running
3235- /// rustc instead of `#![cfg_attr(..., crate_type = "...")]` and
3236- /// `--crate-name` instead of `#![cfg_attr(..., crate_name = "...")]`.
3237- pub DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
3238- Deny ,
3239- "detects usage of `#![cfg_attr(..., crate_type/crate_name = \" ...\" )]`" ,
3240- @future_incompatible = FutureIncompatibleInfo {
3241- reason: FutureIncompatibilityReason :: FutureReleaseErrorDontReportInDeps ,
3242- reference: "issue #91632 <https://github.com/rust-lang/rust/issues/91632>" ,
3243- } ;
3244- }
3245-
32463209declare_lint ! {
32473210 /// The `unexpected_cfgs` lint detects unexpected conditional compilation conditions.
32483211 ///
0 commit comments