rustc_trait_selection

Module errors

Source

Modules§

note_and_explain

Structs§

AddLifetimeParamsSuggestion
AddPreciseCapturingAndParams
AddPreciseCapturingForOvercapture
AmbiguousImpl
AmbiguousReturn
AnnotationRequired
AsyncClosureNotFn 🔒
ButCallingIntroduces
ButNeedsToSatisfy
ClosureFnMutLabel
ClosureFnOnceLabel
ClosureKindMismatch
ConsiderBorrowingParamHelp
DumpVTableEntries
DynTraitConstraintSuggestion
EmptyOnClauseInOnUnimplemented
FnConsiderCasting
FnItemsAreDistinct
FnUniqTypes
FulfillReqLifetime
InferenceBadError
InherentProjectionNormalizationOverflow
IntroducesStaticBecauseUnmetLifetimeReq
InvalidOnClauseInOnUnimplemented
LfBoundNotSatisfied
LifetimeMismatch
MismatchedStaticLifetime
MoreTargeted
NegativePositiveConflict
NoValueInOnUnimplemented
OpaqueCapturesLifetime
OutlivesBound
OutlivesContent
RefLongerThanData
RelationshipHelp
ReqIntroducedLocations
SuggestTuplePatternMany
SuggestTuplePatternOne
TraitImplDiff
TraitPlaceholderMismatch
UnableToConstructConstantValue

Enums§

ActualImplExpectedKind
ActualImplExpectedLifetimeKind
ActualImplExplNotes
AddPreciseCapturing
AdjustSignatureBorrow
ConsiderAddingAwait
DoesNotOutliveStaticFromImpl
ExplicitLifetimeRequired
FunctionPointerSuggestion
ImplicitStaticLifetimeSubdiag
LifetimeMismatchLabels
ObligationCauseFailureCode
PlaceholderRelationLfNotSatisfied
RegionOriginNote
SourceKindMultiSuggestion
SourceKindSubdiag
SuggestAccessingField
SuggestRemoveSemiOrReturnBinding
TyOrSig
TypeErrorAdditionalDiags
WhereClauseSuggestions

Functions§

impl_trait_overcapture_suggestion
Given a set of captured DefId for an RPIT (opaque_def_id) and a given function (fn_def_id), try to suggest adding + use<...> to capture just the specified parameters. If one of those parameters is an APIT, then try to suggest turning it into a regular type parameter.