Skip to main content

Module opaque_hidden_inferred_bound

Module opaque_hidden_inferred_bound 

Source

Re-exportsยง

use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::AmbigArg; ๐Ÿ”’
use rustc_infer::infer::TyCtxtInferExt; ๐Ÿ”’
use rustc_lint_defs::declare_lint; ๐Ÿ”’
use rustc_lint_defs::declare_lint_pass; ๐Ÿ”’
use rustc_macros::Diagnostic; ๐Ÿ”’
use rustc_macros::Subdiagnostic; ๐Ÿ”’
use rustc_middle::ty::print::PrintTraitClauseExt as _; ๐Ÿ”’
use rustc_middle::ty::print::TraitClausePrintModifiersAndPath; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::BottomUpFolder; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TypeFoldable; ๐Ÿ”’
use rustc_middle::ty::Unnormalized; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::kw; ๐Ÿ”’
use rustc_trait_selection::traits; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCtxt; ๐Ÿ”’
use crate::LateContext; ๐Ÿ”’
use crate::LateLintPass; ๐Ÿ”’
use crate::LintContext; ๐Ÿ”’

Structsยง

AddBound ๐Ÿ”’
OpaqueHiddenInferredBound
OpaqueHiddenInferredBoundLint ๐Ÿ”’

Staticsยง

OPAQUE_HIDDEN_INFERRED_BOUND
The opaque_hidden_inferred_bound lint detects cases in which nested impl Trait in associated type bounds are not written generally enough to satisfy the bounds of the associated type.