Expand description
Utilities for node resolution.
Re-exportsยง
use rustc_attr_ir::lang_items::LangItem;๐use rustc_hir::def::DefKind;๐use rustc_hir::def::Res;๐use rustc_hir::def_id::DefId;๐use rustc_hir as hir;๐use rustc_hir::Expr;๐use rustc_hir::ExprKind;๐use rustc_hir::HirId;๐use rustc_hir::Pat;๐use rustc_hir::PatExpr;๐use rustc_hir::PatExprKind;๐use rustc_hir::PatKind;๐use rustc_hir::Path;๐use rustc_hir::PathSegment;๐use rustc_hir::QPath;๐use rustc_hir::TyKind;๐use rustc_lint::LateContext;๐use rustc_middle::ty::layout::HasTyCtxt;๐use rustc_middle::ty::AdtDef;๐use rustc_middle::ty::AdtKind;๐use rustc_middle::ty::Binder;๐use rustc_middle::ty::EarlyBinder;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TypeckResults;๐use rustc_span::Ident;๐use rustc_span::Symbol;๐
Traitsยง
- HasHir
Id - Either a
HirIdor a type which can be identified by one. - Maybe
Def - A type which may either contain a
DefIdor be referred to by aDefId. - MaybeQ
Path - A HIR node which might be a
QPath. - Maybe
ResPath - A HIR node which might be a
QPath::Resolved. - Maybe
Typeck Res - Either a [
TypeckResults] or a type that may contain one.
Type Aliasesยง
- DefRes ๐
- OptRes
Path ๐ - A resolved path and the explicit
Selftype if there is one. - OptTy
RelPath ๐ - QPathId ๐
- A
QPathwith theHirIdof the node containing it.