Structs§
- Awaits
Visitor 🔒 - Collect all the awaited expressions within the input expression.
- Coroutine
Data 🔒 - Find
Type 🔒Param - Look for type
param
in an ADT being used only through a reference to confirm that suggestingparam: ?Sized
would be a valid constraint. - Replace
Impl 🔒Trait Folder - Replace
Impl 🔒Trait Visitor - Collect the spans that we see the generic param
param_did
- Returns
Visitor - Collect all the returned expressions within the input expression. Used to point at the return spans when we want to suggest some change to them.
- Self
Visitor - Collect all the paths that reference
Self
. Used to suggest replacing associated types with an explicit type inwhere
clauses.
Enums§
Traits§
- Next
Type Param Name - Suggest a new type parameter name for diagnostic purposes.
Functions§
- get_
deref_ 🔒type_ and_ refs - get_
explanation_ 🔒based_ on_ obligation - hint_
missing_ 🔒borrow - Add a hint to add a missing borrow or remove an unnecessary one.
- point_
at_ 🔒assoc_ type_ restriction - On
impl
evaluation cycles, look forSelf::AssocTy
restrictions inwhere
clauses, explain they are not allowed and if possible suggest alternatives. - predicate_
constraint 🔒 - suggest_
desugaring_ async_ fn_ to_ impl_ future_ in_ trait - suggest_
restriction - Type parameter needs more bounds. The trivial case is
T
where T: Bound
, but it can also be animpl Trait
param that needs to be decomposed to a type param for cleaner code.