We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b573250 commit 25f8f4cCopy full SHA for 25f8f4c
compiler/rustc_middle/src/mir/syntax.rs
@@ -220,6 +220,11 @@ pub enum BorrowKind {
220
/// immutable, but not aliasable. This solves the problem. For
221
/// simplicity, we don't give users the way to express this
222
/// borrow, it's just used when translating closures.
223
+ ///
224
+ // FIXME(#112072): This is wrong. Unique borrows are mutable borrows except
225
+ // that they do not require their pointee to be marked as a mutable.
226
+ // They should still be treated as mutable borrows in every other way,
227
+ // e.g. for variance or overlap checking.
228
Unique,
229
230
/// Data is mutable and not aliasable.
0 commit comments