From 8c1b958cf7ee4143deaf963249f6bbfd2446121e Mon Sep 17 00:00:00 2001 From: Basile Desloges Date: Thu, 21 Sep 2017 16:33:41 +0200 Subject: [PATCH] mir-borrowck: Add FIXME comment to report name of field instead of index at a later date --- src/librustc_mir/borrow_check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/borrow_check.rs b/src/librustc_mir/borrow_check.rs index f718038bb071..5133e528b099 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 } =>