File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ The callbacks are defined by implementing the [`Delegate`] trait. The
183
183
[ ` InferBorrowKind ` ] [ ibk ] type implements ` Delegate ` and keeps a map that
184
184
records for each upvar which mode of borrow was required. The modes of borrow
185
185
can be ` ByValue ` (moved) or ` ByRef ` (borrowed). For ` ByRef ` borrows, it can be
186
- ` shared ` , ` shallow ` , ` unique ` or ` mut ` as defined in the
187
- [ ` compiler/rustc_middle/src/mir /mod.rs ` ] [ mir_mod ] .
186
+ ` ImmBorrow ` , ` UniqueImmBorrow ` , ` MutBorrow ` as defined in the
187
+ [ ` compiler/rustc_middle/src/ty /mod.rs ` ] [ middle_ty ] .
188
188
189
- [ mir_mod ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir /index.html
189
+ [ middle_ty ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty /index.html
190
190
191
191
` Delegate ` defines a few different methods (the different callbacks):
192
192
** consume** for * move* of a variable, ** borrow** for a * borrow* of some kind
You can’t perform that action at this time.
0 commit comments