diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-01 04:12:28 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-12 17:54:48 +0100 |
| commit | 73557faed23678fc443f3fa52727b5f200f597d2 (patch) | |
| tree | d5b14c48ff17af72abccd66ce88397d1a57490ad /src/libsyntax/visit.rs | |
| parent | c4bbe9cbbe9921646cdedb856e34dc951641ed96 (diff) | |
Use `Option` in `ImplItemKind::Const`.
Diffstat (limited to 'src/libsyntax/visit.rs')
| -rw-r--r-- | src/libsyntax/visit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 4ee09b4b87a..0b7a7d993aa 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -617,7 +617,7 @@ pub fn walk_impl_item<'a, V: Visitor<'a>>(visitor: &mut V, impl_item: &'a ImplIt match impl_item.kind { ImplItemKind::Const(ref ty, ref expr) => { visitor.visit_ty(ty); - visitor.visit_expr(expr); + walk_list!(visitor, visit_expr, expr); } ImplItemKind::Method(ref sig, ref body) => { visitor.visit_fn(FnKind::Method(impl_item.ident, sig, Some(&impl_item.vis), body), |
