Skip to content

Commit 2f4dd15

Browse files
committed
Rollup merge of rust-lang#45099 - mikeyhew:fix-astconv-self-type-comments, r=nikomatsakis
Update comments referring to old check_method_self_type I was browsing the code base, trying to figure out how rust-lang#44874 could be implemented, and noticed some comments that were out of date and a bit misleading (`check_method_self_type` has since been renamed to `check_method_receiver`). Thought it would be an easy first contribution to Rust!
2 parents 9effa73 + 6f4e942 commit 2f4dd15

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)