diff options
| author | bors <bors@rust-lang.org> | 2018-07-28 07:42:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-28 07:42:13 +0000 |
| commit | 05607476521732c5c71bc063c8be5056aa573b15 (patch) | |
| tree | cb47ef452a0aeb4165f265aac52cc2b1c2ffe817 /src/liballoc_jemalloc | |
| parent | 4f1e2357447ef7e8066c49560d66c3e18f25d982 (diff) | |
| parent | b32caef1ad605c8607ad0c3ccc682f6536f0e812 (diff) | |
| download | rust-05607476521732c5c71bc063c8be5056aa573b15.tar.gz rust-05607476521732c5c71bc063c8be5056aa573b15.zip | |
Auto merge of #52678 - matthewjasper:better-spans, r=nikomatsakis
[NLL] Use better spans in some errors
* Use the span of the discriminant and patterns for "fake" statements created to properly check matches. I plan to special case these soon, but this felt like a good first step
* Use the span of the statement, rather than the initialization, when reporting move errors for `let x = ...`, which avoids giving an unhelpful suggestion to use `&{ }`.
r? @nikomatsakis cc @pnkfelix
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions
