]> git.lizzy.rs Git - rust.git/commitdiff
Update doc for `explain_why_borrow_contains_point` to reflect its newer API.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 28 Sep 2018 09:50:05 +0000 (11:50 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 5 Oct 2018 08:39:39 +0000 (10:39 +0200)
src/librustc_mir/borrow_check/nll/explain_borrow/mod.rs

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