about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Hewson <michael@michaelhewson.ca>2017-10-07 23:51:43 -0400
committerMichael Hewson <michael@michaelhewson.ca>2017-10-07 23:56:13 -0400
commit6f4e942ef96f92e61f40c0d1bd889e66b0de3cfd (patch)
treec7a8a5c0189383611e111ef1b50c3b25db766de5
parent05f8ddc46a3fc09762a19f6c168550ce1ae66593 (diff)
downloadrust-6f4e942ef96f92e61f40c0d1bd889e66b0de3cfd.tar.gz
rust-6f4e942ef96f92e61f40c0d1bd889e66b0de3cfd.zip
update comments referring to old check_method_self_type
- function has been renamed to check_method_receiver
-rw-r--r--src/librustc_typeck/astconv.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs
index af8cc2c806a..6b7a5b3af96 100644
--- a/src/librustc_typeck/astconv.rs
+++ b/src/librustc_typeck/astconv.rs
@@ -1464,7 +1464,7 @@ impl<'tcx> ExplicitSelf<'tcx> {
     /// declaration like `self: SomeType` into either `self`,
     /// `&self`, `&mut self`, or `Box<self>`. We do this here
     /// by some simple pattern matching. A more precise check
-    /// is done later in `check_method_self_type()`.
+    /// is done later in `check_method_receiver()`.
     ///
     /// Examples:
     ///
@@ -1475,7 +1475,7 @@ impl<'tcx> ExplicitSelf<'tcx> {
     ///     fn method2(self: &T); // ExplicitSelf::ByValue
     ///     fn method3(self: Box<&T>); // ExplicitSelf::ByBox
     ///
-    ///     // Invalid cases will be caught later by `check_method_self_type`:
+    ///     // Invalid cases will be caught later by `check_method_receiver`:
     ///     fn method_err1(self: &mut T); // ExplicitSelf::ByReference
     /// }
     /// ```