Re-exportsยง
use rustc_abi::ExternAbi;๐use rustc_ast::visit::AssocCtxt;๐use rustc_attr_ir::target::AstTarget;๐use rustc_attr_ir::target::Target;๐use rustc_attr_ir::AttributeKind;๐use rustc_attr_ir::EiiImplResolution;๐use rustc_attr_ir::find_attr;๐use rustc_errors::E0570;๐use rustc_errors::ErrorGuaranteed;๐use rustc_errors::struct_span_code_err;๐use rustc_hir::def::DefKind;๐use rustc_hir::def::Res;๐use rustc_hir as hir;๐use rustc_hir::HirId;๐use rustc_hir::ImplItemImplKind;๐use rustc_hir::LifetimeSource;๐use rustc_hir::PredicateOrigin;๐use rustc_middle::ty::data_structures::IndexMap;๐use rustc_span::def_id::DefId;๐use rustc_span::def_id::LocalDefId;๐use rustc_span::edit_distance::find_best_match_for_name;๐use rustc_span::DUMMY_SP;๐use rustc_span::DesugaringKind;๐use rustc_span::Ident;๐use rustc_span::Span;๐use rustc_span::Symbol;๐use rustc_span::kw;๐use rustc_span::sym;๐use smallvec::SmallVec;๐use thin_vec::ThinVec;๐use tracing::instrument;๐use tracing::instrument;๐use super::diagnostics::InvalidAbi;๐use super::diagnostics::InvalidAbiSuggestion;๐use super::diagnostics::TupleStructWithDefault;๐use super::diagnostics::UnionWithDefault;๐use super::stability::enabled_names;๐use super::stability::gate_unstable_abi;๐use super::DiscardParams;๐use super::FnDeclKind;๐use super::GenericArgsMode;๐use super::ImplTraitContext;๐use super::ImplTraitPosition;๐use super::LoweringContext;๐use super::ParamMode;๐use super::RelaxedBoundForbiddenReason;๐use super::RelaxedBoundPolicy;๐use crate::diagnostics::ConstComptimeFn;๐use crate::diagnostics::ResolvingRestrictionKind;๐use crate::diagnostics::RestrictionAncestorOnly;๐use rustc_ast::*;๐
Functionsยง
- add_
ty_ ๐alias_ where_ clause - When we have a ty alias we may have two where clauses. To give the best diagnostics, we set the span to the where clause that is preferred, if it exists. Otherwise, it sets the span to the other where clause if it exists.