about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBasile Desloges <basile.desloges@gmail.com>2017-09-21 16:33:41 +0200
committerBasile Desloges <basile.desloges@gmail.com>2017-09-21 16:42:30 +0200
commit8c1b958cf7ee4143deaf963249f6bbfd2446121e (patch)
tree744232231f0a10d40d804b7aeee9634d9a6b440d
parente84581192d2629be07d622736ecbe6ce95f3ece0 (diff)
downloadrust-8c1b958cf7ee4143deaf963249f6bbfd2446121e.tar.gz
rust-8c1b958cf7ee4143deaf963249f6bbfd2446121e.zip
mir-borrowck: Add FIXME comment to report name of field instead of index at a later date
-rw-r--r--src/librustc_mir/borrow_check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check.rs b/src/librustc_mir/borrow_check.rs
index f718038bb07..5133e528b09 100644
--- a/src/librustc_mir/borrow_check.rs
+++ b/src/librustc_mir/borrow_check.rs
@@ -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 } =>