diff options
| author | bors <bors@rust-lang.org> | 2016-05-10 05:22:17 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-05-10 05:22:17 -0700 |
| commit | d6588097d4d65e567fb234c042e61ad8ce4d41e6 (patch) | |
| tree | b764bc617877bff1a114dcb511d47acc4c27f29f /src/libsyntax/errors | |
| parent | 3585321d1ed7665cf2c0d828ff0073844d27d831 (diff) | |
| parent | b62e7ff18d4030ef929226f9b92d83dbc5e67000 (diff) | |
| download | rust-d6588097d4d65e567fb234c042e61ad8ce4d41e6.tar.gz rust-d6588097d4d65e567fb234c042e61ad8ce4d41e6.zip | |
Auto merge of #33471 - birkenfeld:issue-33464, r=jseyfried
resolve: do not modify span of non-importable name
This span modification is probably leftover from a time when import spans were assigned differently.
With this change, error spans for the following are properly reported:
```
use abc::one_el;
use abc::{a, bbb, cccccc};
use a_very_long_name::{el, el2};
```
before (spans only):
```
x.rs:3 use abc::one_el;
^~~
x.rs:4 use abc::{a, bbb, cccccc};
^~~
x.rs:4 use abc::{a, bbb, cccccc};
^~~
x.rs:4 use abc::{a, bbb, cccccc};
^~~
(internal compiler error: unprintable span)
(internal compiler error: unprintable span)
```
after:
```
x.rs:3 use abc::one_el;
^~~~~~~~~~~
x.rs:4 use abc::{a, bbb, cccccc};
^
x.rs:4 use abc::{a, bbb, cccccc};
^~~
x.rs:4 use abc::{a, bbb, cccccc};
^~~~~~
x.rs:5 use a_very_long_name::{el, el2};
^~
x.rs:5 use a_very_long_name::{el, el2};
^~~
```
Fixes: #33464
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions
