Implement lint against using Interner and InferCtxtLike in random compiler crates
This commit is contained in:
parent
ca6dad3eab
commit
14804d1ed1
11 changed files with 82 additions and 3 deletions
|
@ -799,6 +799,9 @@ lint_tykind_kind = usage of `ty::TyKind::<kind>`
|
|||
lint_type_ir_inherent_usage = do not use `rustc_type_ir::inherent` unless you're inside of the trait solver
|
||||
.note = the method or struct you're looking for is likely defined somewhere else downstream in the compiler
|
||||
|
||||
lint_type_ir_trait_usage = do not use `rustc_type_ir::Interner` or `rustc_type_ir::InferCtxtLike` unless you're inside of the trait solver
|
||||
.note = the method or struct you're looking for is likely defined somewhere else downstream in the compiler
|
||||
|
||||
lint_undropped_manually_drops = calls to `std::mem::drop` with `std::mem::ManuallyDrop` instead of the inner value does nothing
|
||||
.label = argument has type `{$arg_ty}`
|
||||
.suggestion = use `std::mem::ManuallyDrop::into_inner` to get the inner value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue