about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-30 14:03:18 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-30 14:10:45 +0200
commit0705e6a12e57f89cb9847d85ddd0b6a6bc03ba8f (patch)
treeef59286793dfe663b1eb2baa5983509959f5e3ed
parentaa1398176eed660a64bbbd4dfd1e31e96a0f93ba (diff)
downloadrust-0705e6a12e57f89cb9847d85ddd0b6a6bc03ba8f.tar.gz
rust-0705e6a12e57f89cb9847d85ddd0b6a6bc03ba8f.zip
expr_use_visitor: Added comment explaining meaning of boolean return value.
-rw-r--r--src/librustc/middle/expr_use_visitor.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc/middle/expr_use_visitor.rs b/src/librustc/middle/expr_use_visitor.rs
index 97314b57ef6..1168021a93d 100644
--- a/src/librustc/middle/expr_use_visitor.rs
+++ b/src/librustc/middle/expr_use_visitor.rs
@@ -885,6 +885,11 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
         }
     }
 
+    // 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,