@@ -34,7 +34,6 @@ declare_lint_pass! {
34
34
DEAD_CODE ,
35
35
DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK ,
36
36
DEPRECATED ,
37
- DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
38
37
DEPRECATED_IN_FUTURE ,
39
38
DEPRECATED_SAFE_2024 ,
40
39
DEPRECATED_WHERE_CLAUSE_LOCATION ,
@@ -3143,42 +3142,6 @@ declare_lint! {
3143
3142
"detects large moves or copies" ,
3144
3143
}
3145
3144
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
-
3182
3145
declare_lint ! {
3183
3146
/// The `unexpected_cfgs` lint detects unexpected conditional compilation conditions.
3184
3147
///
0 commit comments