Skip to content

Commit 6f4e942

Browse files
committed
update comments referring to old check_method_self_type
- function has been renamed to check_method_receiver
1 parent 05f8ddc commit 6f4e942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_typeck/astconv.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ impl<'tcx> ExplicitSelf<'tcx> {
14641464
/// declaration like `self: SomeType` into either `self`,
14651465
/// `&self`, `&mut self`, or `Box<self>`. We do this here
14661466
/// by some simple pattern matching. A more precise check
1467-
/// is done later in `check_method_self_type()`.
1467+
/// is done later in `check_method_receiver()`.
14681468
///
14691469
/// Examples:
14701470
///
@@ -1475,7 +1475,7 @@ impl<'tcx> ExplicitSelf<'tcx> {
14751475
/// fn method2(self: &T); // ExplicitSelf::ByValue
14761476
/// fn method3(self: Box<&T>); // ExplicitSelf::ByBox
14771477
///
1478-
/// // Invalid cases will be caught later by `check_method_self_type`:
1478+
/// // Invalid cases will be caught later by `check_method_receiver`:
14791479
/// fn method_err1(self: &mut T); // ExplicitSelf::ByReference
14801480
/// }
14811481
/// ```

0 commit comments

Comments
 (0)