Re-exportsยง
use rustc_data_structures::fx::FxIndexMap;๐use rustc_data_structures::fx::FxIndexSet;๐use rustc_data_structures::sorted_map::SortedMap;๐use rustc_data_structures::thin_vec::ThinVec;๐use rustc_data_structures::unord::UnordMap;๐use rustc_errors::Applicability;๐use rustc_errors::Diag;๐use rustc_errors::ErrorGuaranteed;๐use rustc_errors::MultiSpan;๐use rustc_errors::SuggestionStyle;๐use rustc_errors::listify;๐use rustc_errors::msg;๐use rustc_errors::pluralize;๐use rustc_errors::struct_span_code_err;๐use rustc_hir::def::CtorOf;๐use rustc_hir::def::DefKind;๐use rustc_hir::def::Res;๐use rustc_hir::def_id::DefId;๐use rustc_hir as hir;๐use rustc_hir::HirId;๐use rustc_middle::ty::fast_reject::TreatParams;๐use rustc_middle::ty::fast_reject::simplify_type;๐use rustc_middle::ty::print::PrintPolyTraitRefExt as _;๐use rustc_middle::ty::print::PrintTraitRefExt as _;๐use rustc_middle::ty;๐use rustc_middle::ty::AdtDef;๐use rustc_middle::ty::GenericParamDefKind;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TyCtxt;๐use rustc_middle::ty::TypeVisitableExt;๐use rustc_middle::ty::suggest_constraining_type_param;๐use rustc_session::diagnostics::feature_err;๐use rustc_span::edit_distance::find_best_match_for_name;๐use rustc_span::BytePos;๐use rustc_span::DUMMY_SP;๐use rustc_span::Ident;๐use rustc_span::OrdSpan;๐use rustc_span::Span;๐use rustc_span::Symbol;๐use rustc_span::bug;๐use rustc_span::kw;๐use rustc_span::sym;๐use rustc_trait_selection::error_reporting::traits::report_dyn_incompatibility;๐use rustc_trait_selection::traits::FulfillmentError;๐use rustc_trait_selection::traits::dyn_compatibility_violations_for_assoc_item;๐use smallvec::SmallVec;๐use tracing::debug;๐use super::InherentAssocCandidate;๐use crate::diagnostics;๐use crate::diagnostics::AssocItemConstraintsNotAllowedHere;๐use crate::diagnostics::ManualImplementation;๐use crate::diagnostics::ParenthesizedFnTraitExpansion;๐use crate::diagnostics::TraitObjectDeclaredWithNoTraits;๐use crate::hir_ty_lowering::AssocItemQSelf;๐use crate::hir_ty_lowering::HirTyLowerer;๐use rustc_errors::codes::*;๐
Structsยง
Enumsยง
- Generics
Args ErrExtend - Used for generics args error extend.
Functionsยง
- assoc_
tag_ ๐str - eq_
ctxt_ ๐suggestion_ span - Computes the
pat.between(ty)span for the โuse=โ suggestion onlet pat: ty. ReturnsNoneifpatandtyare in incompatible macro contexts (e.g.patis a metavariable from the call site whiletylives in the macro body), in which case no suggestion is emitted. - fn_
trait_ ๐to_ string - generics_
args_ ๐err_ extend - prohibit_
assoc_ item_ constraint - Emit an error for the given associated item constraint.