]> git.lizzy.rs Git - rust.git/commit
mir-borrowck: print values in error messages in the same way that the AST borrowck
authorBasile Desloges <basile.desloges@gmail.com>
Mon, 2 Oct 2017 17:36:58 +0000 (19:36 +0200)
committerBasile Desloges <basile.desloges@gmail.com>
Fri, 6 Oct 2017 15:44:50 +0000 (17:44 +0200)
commitaa78919733264bfd07e49c7ed8e82f5a5a9eed11
treeeae9cff90f3253a0fa9f0e6c9e596dec8145ff90
parenta8feaee5b6b54c03f49481fe04a9ad9e8f659f7c
mir-borrowck: print values in error messages in the same way that the AST borrowck

- Print fields with `.name` rather than `.<num>`
- Autoderef values if followed by a field or an index
src/librustc_mir/borrow_check.rs