Skip to content

Commit 25f8f4c

Browse files
committed
add FIXME
1 parent b573250 commit 25f8f4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_middle/src/mir/syntax.rs

+5
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ pub enum BorrowKind {
220220
/// immutable, but not aliasable. This solves the problem. For
221221
/// simplicity, we don't give users the way to express this
222222
/// 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.
223228
Unique,
224229

225230
/// Data is mutable and not aliasable.

0 commit comments

Comments
 (0)