]> git.lizzy.rs Git - rust.git/commitdiff
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)
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).

1  2 
src/librustc/traits/error_reporting.rs