]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #35576 - circuitfox:E0072-update-error-format, r=jonathandturner
authorJonathan Turner <jonathandturner@users.noreply.github.com>
Thu, 11 Aug 2016 13:34:02 +0000 (06:34 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2016 13:34:02 +0000 (06:34 -0700)
commitcdedad530f05767905ef1a53f284b4a88424f3dc
tree6ba1d1befea1f722841b9f4720fbe3eb1d0a0326
parent0e92c5e8b28c41577d40a7e034fa698d74ba4c51
parentc5f9febc480804c8e9053ca9678058722d1a8ce3
Rollup merge of #35576 - circuitfox:E0072-update-error-format, r=jonathandturner

E0072 update error format

Part of  #35233

Fixes #35506

r? @jonathandturner

The bonus for this issue currently seems to be impossible to do reliably, as the compiler seems to lack span information for item names alone, like `Foo` in `struct Foo { ... }`. It would be possible to hack something together by computing span offsets, but that seems like a solution that would be begging for trouble.

A proper solution to this would, of course, be to add span information to the right place (seems to be `rustc::hir::Item::name` but I may be wrong).
src/librustc/traits/error_reporting.rs