]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast/src/visit.rs
Rollup merge of #103394 - Pointerbender:unsafecell-docs, r=Amanieu
[rust.git] / compiler / rustc_ast / src / visit.rs
index e752cc7dc2dcd6ab34d398c8fd6f09670caccb12..6f56c1ef0e8daa6ff4e5fad425bd1171a51cc4f6 100644 (file)
@@ -140,6 +140,11 @@ fn visit_anon_const(&mut self, c: &'ast AnonConst) {
     fn visit_expr(&mut self, ex: &'ast Expr) {
         walk_expr(self, ex)
     }
+    /// This method is a hack to workaround unstable of `stmt_expr_attributes`.
+    /// It can be removed once that feature is stabilized.
+    fn visit_method_receiver_expr(&mut self, ex: &'ast Expr) {
+        self.visit_expr(ex)
+    }
     fn visit_expr_post(&mut self, _ex: &'ast Expr) {}
     fn visit_ty(&mut self, t: &'ast Ty) {
         walk_ty(self, t)