about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorYoungsuk_Kim <ykim837@gatech.edu>2020-09-25 17:39:17 -0400
committerJoshua Nelson <joshua@yottadb.com>2020-09-25 22:55:49 -0400
commit3ee6367d1e116531821ee8ff275726bac912013a (patch)
treedeac9ef250abc4df129ffd0c93e46b16422148be /src/doc/rustc-dev-guide
parent268028e25928e9fb31271f360b66dc6aae61ee42 (diff)
downloadrust-3ee6367d1e116531821ee8ff275726bac912013a.tar.gz
rust-3ee6367d1e116531821ee8ff275726bac912013a.zip
update description of 'ByRef' borrows of closures
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/closure.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/closure.md b/src/doc/rustc-dev-guide/src/closure.md
index 665f7734eef..4e6e69d1d2e 100644
--- a/src/doc/rustc-dev-guide/src/closure.md
+++ b/src/doc/rustc-dev-guide/src/closure.md
@@ -183,10 +183,10 @@ The callbacks are defined by implementing the [`Delegate`] trait. The
 [`InferBorrowKind`][ibk] type implements `Delegate` and keeps a map that
 records for each upvar which mode of borrow was required. The modes of borrow
 can be `ByValue` (moved) or `ByRef` (borrowed). For `ByRef` borrows, it can be
-`shared`, `shallow`, `unique` or `mut` as defined in the
-[`compiler/rustc_middle/src/mir/mod.rs`][mir_mod].
+`ImmBorrow`, `UniqueImmBorrow`, `MutBorrow` as defined in the
+[`compiler/rustc_middle/src/ty/mod.rs`][middle_ty].
 
-[mir_mod]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/index.html
+[middle_ty]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/index.html
 
 `Delegate` defines a few different methods (the different callbacks):
 **consume** for *move* of a variable, **borrow** for a *borrow* of some kind