]> git.lizzy.rs Git - rust.git/commitdiff
update comments referring to old check_method_self_type
authorMichael Hewson <michael@michaelhewson.ca>
Sun, 8 Oct 2017 03:51:43 +0000 (23:51 -0400)
committerMichael Hewson <michael@michaelhewson.ca>
Sun, 8 Oct 2017 03:56:13 +0000 (23:56 -0400)
- function has been renamed to check_method_receiver

src/librustc_typeck/astconv.rs

index af8cc2c806adf4bcea2849fcf1a40dbeec164fff..6b7a5b3af9669935ee6e27d9b029f0e842941d9c 100644 (file)
@@ -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
     /// }
     /// ```