In the case of [ui/borrowck/borrowck-move-error-with-note.rs](https://github.com/rust-lang/rust/blob/master/src/test/ui/borrowck/borrowck-move-error-with-note.rs), the AST borrowck output ([borrowck-move-error-with-note.stderr](https://github.com/rust-lang/rust/blob/master/src/test/ui/borrowck/borrowck-move-error-with-note.stderr)) includes suggestions like this: ``` LL | Foo::Foo1(num1, | ---- hint: to prevent move, use `ref num1` or `ref mut num1` ``` but NLL ([borrowck-move-error-with-note.nll.stderr](https://github.com/rust-lang/rust/blob/master/src/test/ui/borrowck/borrowck-move-error-with-note.nll.stderr)) presents no such suggestion for errors it discovers in the MIR for `match` patterns. Here are all the tests that I think involve this: * [ ] [ui/borrowck/borrowck-move-error-with-note.nll.stderr](https://github.com/rust-lang/rust/blob/master/src/test/ui/borrowck/borrowck-move-error-with-note.nll.stderr) * [ ] [ui/borrowck/borrowck-vec-pattern-nesting.nll.stderr](https://github.com/rust-lang/rust./blob/master/src/test/ui/borrowck/borrowck-vec-pattern-nesting.nll.stderr)
In the case of ui/borrowck/borrowck-move-error-with-note.rs, the AST borrowck output (borrowck-move-error-with-note.stderr) includes suggestions like this:
but NLL (borrowck-move-error-with-note.nll.stderr) presents no such suggestion for errors it discovers in the MIR for
matchpatterns.Here are all the tests that I think involve this: