"uses of #[derive] with raw pointers are rarely correct"
}
- declare_lint! {
- pub TRANSMUTE_FROM_FN_ITEM_TYPES,
- Deny,
- "transmute from function item type to pointer-sized type erroneously allowed"
- }
-
declare_lint! {
pub HR_LIFETIME_IN_ASSOC_TYPE,
Deny,
"detects use of struct constructors that would be invisible with new visibility rules"
}
+declare_lint! {
+ pub MISSING_FRAGMENT_SPECIFIER,
+ Warn,
+ "detects missing fragment specifiers in unused `macro_rules!` patterns"
+}
+
declare_lint! {
pub DEPRECATED,
Warn,
ILLEGAL_STRUCT_OR_ENUM_CONSTANT_PATTERN,
CONST_ERR,
RAW_POINTER_DERIVE,
- TRANSMUTE_FROM_FN_ITEM_TYPES,
OVERLAPPING_INHERENT_IMPLS,
RENAMED_AND_REMOVED_LINTS,
SUPER_OR_SELF_IN_GLOBAL_PATH,
LEGACY_DIRECTORY_OWNERSHIP,
LEGACY_IMPORTS,
LEGACY_CONSTRUCTOR_VISIBILITY,
+ MISSING_FRAGMENT_SPECIFIER,
DEPRECATED
)
}
id: LintId::of(SUPER_OR_SELF_IN_GLOBAL_PATH),
reference: "issue #36888 <https://github.com/rust-lang/rust/issues/36888>",
},
- FutureIncompatibleInfo {
- id: LintId::of(TRANSMUTE_FROM_FN_ITEM_TYPES),
- reference: "issue #19925 <https://github.com/rust-lang/rust/issues/19925>",
- },
FutureIncompatibleInfo {
id: LintId::of(OVERLAPPING_INHERENT_IMPLS),
reference: "issue #36889 <https://github.com/rust-lang/rust/issues/36889>",
id: LintId::of(LEGACY_CONSTRUCTOR_VISIBILITY),
reference: "issue #39207 <https://github.com/rust-lang/rust/issues/39207>",
},
+ FutureIncompatibleInfo {
+ id: LintId::of(MISSING_FRAGMENT_SPECIFIER),
+ reference: "issue #40107 <https://github.com/rust-lang/rust/issues/40107>",
+ },
]);
// Register renamed and removed lints
store.register_removed("raw_pointer_deriving",
"using derive with raw pointers is ok");
store.register_removed("drop_with_repr_extern", "drop flags have been removed");
+ store.register_removed("transmute_from_fn_item_types",
+ "always cast functions before transmuting them");
}