add the ORDER_DEPENDENT_TRAIT_OBJECTS lint
This commit is contained in:
parent
f4b07e0713
commit
38825674b2
2 changed files with 13 additions and 0 deletions
|
|
@ -208,6 +208,13 @@ declare_lint! {
|
|||
"potentially-conflicting impls were erroneously allowed"
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
pub ORDER_DEPENDENT_TRAIT_OBJECTS,
|
||||
Deny,
|
||||
// FIXME: ENG
|
||||
"trait-object types are different depending on marker-trait order"
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
pub BAD_REPR,
|
||||
Warn,
|
||||
|
|
@ -405,6 +412,7 @@ impl LintPass for HardwiredLints {
|
|||
PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES,
|
||||
LATE_BOUND_LIFETIME_ARGUMENTS,
|
||||
INCOHERENT_FUNDAMENTAL_IMPLS,
|
||||
ORDER_DEPENDENT_TRAIT_OBJECTS,
|
||||
DEPRECATED,
|
||||
UNUSED_UNSAFE,
|
||||
UNUSED_MUT,
|
||||
|
|
|
|||
|
|
@ -293,6 +293,11 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
|
|||
reference: "issue #46205 <https://github.com/rust-lang/rust/issues/46205>",
|
||||
edition: None,
|
||||
},
|
||||
FutureIncompatibleInfo {
|
||||
id: LintId::of(ORDER_DEPENDENT_TRAIT_OBJECTS),
|
||||
reference: "issue #33140 <https://github.com/rust-lang/rust/issues/33140>",
|
||||
edition: None,
|
||||
},
|
||||
FutureIncompatibleInfo {
|
||||
id: LintId::of(TYVAR_BEHIND_RAW_POINTER),
|
||||
reference: "issue #46906 <https://github.com/rust-lang/rust/issues/46906>",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue