Re-exportsΒ§
use std::cell::LazyCell;πuse std::debug_assert_matches;πuse rustc_data_structures::fx::FxHashMap;πuse rustc_data_structures::fx::FxIndexMap;πuse rustc_data_structures::fx::FxIndexSet;πuse rustc_data_structures::unord::UnordSet;πuse rustc_errors::Diagnostic;πuse rustc_errors::Subdiagnostic;πuse rustc_errors::msg;πuse rustc_hir as hir;πuse rustc_hir::def::DefKind;πuse rustc_hir::def_id::DefId;πuse rustc_hir::def_id::LocalDefId;πuse rustc_infer::infer::TyCtxtInferExt;πuse rustc_infer::infer::outlives::env::OutlivesEnvironment;πuse rustc_lint_defs::declare_lint;πuse rustc_lint_defs::declare_lint_pass;πuse rustc_lint_defs::fcw;πuse rustc_macros::Diagnostic;πuse rustc_middle::middle::resolve_bound_vars::ResolvedArg;πuse rustc_middle::ty::relate::Relate;πuse rustc_middle::ty::relate::RelateResult;πuse rustc_middle::ty::relate::TypeRelation;πuse rustc_middle::ty::relate::relate_args_with_variances;πuse rustc_middle::ty::relate::structurally_relate_consts;πuse rustc_middle::ty::relate::structurally_relate_tys;πuse rustc_middle::ty;πuse rustc_middle::ty::Ty;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::TypeSuperVisitable;πuse rustc_middle::ty::TypeVisitable;πuse rustc_middle::ty::TypeVisitableExt;πuse rustc_middle::ty::TypeVisitor;πuse rustc_middle::ty::Unnormalized;πuse rustc_span::Span;πuse rustc_span::Symbol;πuse rustc_span::bug;πuse rustc_span::span_bug;πuse rustc_trait_selection::diagnostics::AddPreciseCapturingForOvercapture;πuse rustc_trait_selection::diagnostics::impl_trait_overcapture_suggestion;πuse rustc_trait_selection::regions::OutlivesEnvironmentBuildExt;πuse rustc_trait_selection::traits::ObligationCtxt;πuse crate::LateContext;πuse crate::LateLintPass;π
StructsΒ§
- Functional
Variances π - Computes the variances of regions that appear in the type, but considering late-bound regions too, which donβt have their variance computed usually.
- Impl
Trait Overcaptures - Lint for opaque types that will begin capturing in-scope but unmentioned lifetimes in edition 2024.
- Impl
Trait πOvercaptures Lint - Impl
Trait πRedundant Captures Lint - Visit
Opaque πTypes
EnumsΒ§
- Param
Kind π
StaticsΒ§
- IMPL_
TRAIT_ OVERCAPTURES - The
impl_trait_overcaptureslint warns against cases where lifetime capture behavior will differ in edition 2024. - IMPL_
TRAIT_ REDUNDANT_ CAPTURES - The
impl_trait_redundant_captureslint warns against cases where use of the precise capturinguse<...>syntax is not needed.
FunctionsΒ§
- check_
fn π - extract_
def_ πid_ from_ arg - unify π
- What is the variance that satisfies the two variances?