Skip to main content

Module errors

Module errors 

Source

Modulesยง

note_and_explain ๐Ÿ”’

Structsยง

AddLifetimeParamsSuggestion ๐Ÿ”’
AddPreciseCapturingAndParams ๐Ÿ”’
AddPreciseCapturingForOvercapture
AmbiguousImpl ๐Ÿ”’
AmbiguousReturn ๐Ÿ”’
AnnotationRequired ๐Ÿ”’
ButNeedsToSatisfy ๐Ÿ”’
ClosureFnMutLabel ๐Ÿ”’
ClosureFnOnceLabel ๐Ÿ”’
ClosureKindMismatch ๐Ÿ”’
ConsiderBorrowingParamHelp ๐Ÿ”’
CoroClosureNotFn ๐Ÿ”’
FnConsiderCasting ๐Ÿ”’
FnConsiderCastingBoth ๐Ÿ”’
FnItemsAreDistinct ๐Ÿ”’
FnUniqTypes ๐Ÿ”’
FulfillReqLifetime ๐Ÿ”’
InferenceBadError ๐Ÿ”’
InherentProjectionNormalizationOverflow ๐Ÿ”’
IntroducesStaticBecauseUnmetLifetimeReq ๐Ÿ”’
LfBoundNotSatisfied ๐Ÿ”’
LifetimeMismatch ๐Ÿ”’
MismatchedStaticLifetime ๐Ÿ”’
NegativePositiveConflict ๐Ÿ”’
NonGenericOpaqueTypeParam ๐Ÿ”’
OpaqueCapturesLifetime ๐Ÿ”’
OutlivesBound ๐Ÿ”’
OutlivesContent ๐Ÿ”’
RefLongerThanData ๐Ÿ”’
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.