mir-borrowck: Add FIXME comment to report name of field instead of index at a later date

This commit is contained in:
Basile Desloges 2017-09-21 16:33:41 +02:00
parent e84581192d
commit 8c1b958cf7
1 changed files with 1 additions and 1 deletions

View File

@ -1004,7 +1004,7 @@ impl<'c, 'b, 'a: 'b+'c, 'gcx, 'tcx: 'a> MirBorrowckCtxt<'c, 'b, 'a, 'gcx, 'tcx>
ProjectionElem::Downcast(..) =>
("", format!(""), None), // (dont emit downcast info)
ProjectionElem::Field(field, _ty) =>
("", format!(".{}", field.index()), None),
("", format!(".{}", field.index()), None), // FIXME: report name of field
ProjectionElem::Index(index) =>
("", format!(""), Some(index)),
ProjectionElem::ConstantIndex { offset, min_length, from_end: true } =>