about summary refs log tree commit diff
path: root/compiler/rustc_ast
diff options
context:
space:
mode:
authormaxcabrajac <max@cabrajac.com>2024-10-24 10:59:40 -0300
committermaxcabrajac <max@cabrajac.com>2024-10-24 10:59:40 -0300
commit0635916cbe22b96708abe40499d03aef4901ad6a (patch)
treec435b23cb450d91299bde4d881b7004b6f4edb19 /compiler/rustc_ast
parent5ae4d75effa366176dd75cd0d5662da26385cfc5 (diff)
downloadrust-0635916cbe22b96708abe40499d03aef4901ad6a.tar.gz
rust-0635916cbe22b96708abe40499d03aef4901ad6a.zip
Remove visit_expr_post
Diffstat (limited to 'compiler/rustc_ast')
-rw-r--r--compiler/rustc_ast/src/visit.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_ast/src/visit.rs b/compiler/rustc_ast/src/visit.rs
index 207ec710650..57ebab2abdf 100644
--- a/compiler/rustc_ast/src/visit.rs
+++ b/compiler/rustc_ast/src/visit.rs
@@ -173,9 +173,6 @@ pub trait Visitor<'ast>: Sized {
     fn visit_method_receiver_expr(&mut self, ex: &'ast Expr) -> Self::Result {
         self.visit_expr(ex)
     }
-    fn visit_expr_post(&mut self, _ex: &'ast Expr) -> Self::Result {
-        Self::Result::output()
-    }
     fn visit_ty(&mut self, t: &'ast Ty) -> Self::Result {
         walk_ty(self, t)
     }
@@ -1185,7 +1182,7 @@ pub fn walk_expr<'a, V: Visitor<'a>>(visitor: &mut V, expression: &'a Expr) -> V
         ExprKind::Dummy => {}
     }
 
-    visitor.visit_expr_post(expression)
+    V::Result::output()
 }
 
 pub fn walk_param<'a, V: Visitor<'a>>(visitor: &mut V, param: &'a Param) -> V::Result {