@@ -34,7 +34,6 @@ declare_lint_pass! {
3434 DEAD_CODE ,
3535 DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK ,
3636 DEPRECATED ,
37- DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
3837 DEPRECATED_IN_FUTURE ,
3938 DEPRECATED_SAFE_2024 ,
4039 DEPRECATED_WHERE_CLAUSE_LOCATION ,
@@ -3143,42 +3142,6 @@ declare_lint! {
31433142 "detects large moves or copies" ,
31443143}
31453144
3146- declare_lint ! {
3147- /// The `deprecated_cfg_attr_crate_type_name` lint detects uses of the
3148- /// `#![cfg_attr(..., crate_type = "...")]` and
3149- /// `#![cfg_attr(..., crate_name = "...")]` attributes to conditionally
3150- /// specify the crate type and name in the source code.
3151- ///
3152- /// ### Example
3153- ///
3154- /// ```rust,compile_fail
3155- /// #![cfg_attr(debug_assertions, crate_type = "lib")]
3156- /// ```
3157- ///
3158- /// {{produces}}
3159- ///
3160- ///
3161- /// ### Explanation
3162- ///
3163- /// The `#![crate_type]` and `#![crate_name]` attributes require a hack in
3164- /// the compiler to be able to change the used crate type and crate name
3165- /// after macros have been expanded. Neither attribute works in combination
3166- /// with Cargo as it explicitly passes `--crate-type` and `--crate-name` on
3167- /// the commandline. These values must match the value used in the source
3168- /// code to prevent an error.
3169- ///
3170- /// To fix the warning use `--crate-type` on the commandline when running
3171- /// rustc instead of `#![cfg_attr(..., crate_type = "...")]` and
3172- /// `--crate-name` instead of `#![cfg_attr(..., crate_name = "...")]`.
3173- pub DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
3174- Deny ,
3175- "detects usage of `#![cfg_attr(..., crate_type/crate_name = \" ...\" )]`" ,
3176- @future_incompatible = FutureIncompatibleInfo {
3177- reason: FutureIncompatibilityReason :: FutureReleaseErrorDontReportInDeps ,
3178- reference: "issue #91632 <https://github.com/rust-lang/rust/issues/91632>" ,
3179- } ;
3180- }
3181-
31823145declare_lint ! {
31833146 /// The `unexpected_cfgs` lint detects unexpected conditional compilation conditions.
31843147 ///
0 commit comments