@@ -35,7 +35,6 @@ declare_lint_pass! {
35
35
DEAD_CODE ,
36
36
DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK ,
37
37
DEPRECATED ,
38
- DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
39
38
DEPRECATED_IN_FUTURE ,
40
39
DEPRECATED_SAFE_2024 ,
41
40
DEPRECATED_WHERE_CLAUSE_LOCATION ,
@@ -3207,42 +3206,6 @@ declare_lint! {
3207
3206
"detects large moves or copies" ,
3208
3207
}
3209
3208
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
-
3246
3209
declare_lint ! {
3247
3210
/// The `unexpected_cfgs` lint detects unexpected conditional compilation conditions.
3248
3211
///
0 commit comments