Skip to content

Commit 8c1b958

Browse files
committed
mir-borrowck: Add FIXME comment to report name of field instead of index at a later date
1 parent e845811 commit 8c1b958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ impl<'c, 'b, 'a: 'b+'c, 'gcx, 'tcx: 'a> MirBorrowckCtxt<'c, 'b, 'a, 'gcx, 'tcx>
10041004
ProjectionElem::Downcast(..) =>
10051005
("", format!(""), None), // (dont emit downcast info)
10061006
ProjectionElem::Field(field, _ty) =>
1007-
("", format!(".{}", field.index()), None),
1007+
("", format!(".{}", field.index()), None), // FIXME: report name of field
10081008
ProjectionElem::Index(index) =>
10091009
("", format!(""), Some(index)),
10101010
ProjectionElem::ConstantIndex { offset, min_length, from_end: true } =>

0 commit comments

Comments
 (0)