Skip to content

Commit a75afd8

Browse files
committed
Update doc for explain_why_borrow_contains_point to reflect its newer API.
1 parent 4fff543 commit a75afd8

File tree

1 file changed

+1
-2
lines changed
  • src/librustc_mir/borrow_check/nll/explain_borrow

1 file changed

+1
-2
lines changed

src/librustc_mir/borrow_check/nll/explain_borrow/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'tcx> BorrowExplanation<'tcx> {
9595
}
9696

9797
impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
98-
/// Adds annotations to `err` explaining *why* the borrow contains the
98+
/// Returns structured explanation for *why* the borrow contains the
9999
/// point from `context`. This is key for the "3-point errors"
100100
/// [described in the NLL RFC][d].
101101
///
@@ -106,7 +106,6 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
106106
/// - `kind_place`: if Some, this describes the statement that triggered the error.
107107
/// - first half is the kind of write, if any, being performed
108108
/// - second half is the place being accessed
109-
/// - `err`: where the error annotations are going to be added
110109
///
111110
/// [d]: https://rust-lang.github.io/rfcs/2094-nll.html#leveraging-intuition-framing-errors-in-terms-of-points
112111
pub(in borrow_check) fn explain_why_borrow_contains_point(

0 commit comments

Comments
 (0)