This commit is contained in:
csmoe 2018-07-11 22:41:03 +08:00 committed by Oliver Schneider
parent 6a16b38198
commit f12eca47e0
21 changed files with 143 additions and 142 deletions

View file

@ -216,7 +216,7 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
let ty = hir::Ty {
id: ast::DUMMY_NODE_ID,
node: hir::Ty_::TyPath(hir::QPath::Resolved(None, P(new_path))),
node: hir::TyKind::TyPath(hir::QPath::Resolved(None, P(new_path))),
span: DUMMY_SP,
hir_id: hir::DUMMY_HIR_ID,
};
@ -279,7 +279,7 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
debug!("ty_param_to_ty({:?}) {:?}", param, param.def_id);
hir::Ty {
id: ast::DUMMY_NODE_ID,
node: hir::Ty_::TyPath(hir::QPath::Resolved(
node: hir::TyKind::TyPath(hir::QPath::Resolved(
None,
P(hir::Path {
span: DUMMY_SP,

View file

@ -2586,7 +2586,7 @@ pub struct PolyTrait {
/// it does not preserve mutability or boxes.
#[derive(Clone, RustcEncodable, RustcDecodable, PartialEq, Eq, Debug, Hash)]
pub enum Type {
/// structs/enums/traits (most that'd be an hir::TyPath)
/// structs/enums/traits (most that'd be an hir::TyKind::Path)
ResolvedPath {
path: Path,
typarams: Option<Vec<GenericBound>>,