diff options
| author | varkor <github@varkor.com> | 2019-09-26 17:25:31 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-09-26 18:21:10 +0100 |
| commit | c3d8791373005ef08c876aa649ede245efd2352d (patch) | |
| tree | d60090ad10eecda23484b9c922288929dcb81cd6 /src/librustdoc/clean/mod.rs | |
| parent | d4573c9c1e8118be5ffc662c6a64db329db0a245 (diff) | |
| download | rust-c3d8791373005ef08c876aa649ede245efd2352d.tar.gz rust-c3d8791373005ef08c876aa649ede245efd2352d.zip | |
Rename `Ty.node` to `Ty.kind`
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 8479502722f..161b1a996a9 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -2835,7 +2835,7 @@ impl Clean<Type> for hir::Ty { fn clean(&self, cx: &DocContext<'_>) -> Type { use rustc::hir::*; - match self.node { + match self.kind { TyKind::Never => Never, TyKind::Ptr(ref m) => RawPointer(m.mutbl.clean(cx), box m.ty.clean(cx)), TyKind::Rptr(ref l, ref m) => { @@ -3031,7 +3031,7 @@ impl Clean<Type> for hir::Ty { } TyKind::BareFn(ref barefn) => BareFunction(box barefn.clean(cx)), TyKind::Infer | TyKind::Err => Infer, - TyKind::Typeof(..) => panic!("unimplemented type {:?}", self.node), + TyKind::Typeof(..) => panic!("unimplemented type {:?}", self.kind), TyKind::CVarArgs(_) => CVarArgs, } } |
