]> git.lizzy.rs Git - rust.git/commitdiff
expr_use_visitor: Added comment explaining meaning of boolean return value.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 30 Mar 2015 12:03:18 +0000 (14:03 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 30 Mar 2015 12:10:45 +0000 (14:10 +0200)
src/librustc/middle/expr_use_visitor.rs

index 97314b57ef656802a6b773495566051c7a27978c..1168021a93d80d0deca073b8ff32333a28fe815e 100644 (file)
@@ -885,6 +885,11 @@ fn walk_autoref(&mut self,
         }
     }
 
+    // When this returns true, it means that the expression *is* a
+    // method-call (i.e. via the operator-overload).  This true result
+    // also implies that walk_overloaded_operator already took care of
+    // recursively processing the input arguments, and thus the caller
+    // should not do so.
     fn walk_overloaded_operator(&mut self,
                                 expr: &ast::Expr,
                                 receiver: &ast::Expr,