rust/src/librustc_errors
bors 12e6b53744 Auto merge of #45711 - tirr-c:unicode-span, r=estebank
Display spans correctly when there are zero-width or wide characters

Hopefully...
* fixes #45211
* fixes #8706

---

Before:
```
error: invalid width `7` for integer literal
  --> unicode_2.rs:12:25
   |
12 |     let _ = ("a̐éö̲", 0u7);
   |                         ^^^
   |
   = help: valid widths are 8, 16, 32, 64 and 128

error: invalid width `42` for integer literal
  --> unicode_2.rs:13:20
   |
13 |     let _ = ("아あ", 1i42);
   |                    ^^^^
   |
   = help: valid widths are 8, 16, 32, 64 and 128

error: aborting due to 2 previous errors
```

After:
```
error: invalid width `7` for integer literal
  --> unicode_2.rs:12:25
   |
12 |     let _ = ("a̐éö̲", 0u7);
   |                     ^^^
   |
   = help: valid widths are 8, 16, 32, 64 and 128

error: invalid width `42` for integer literal
  --> unicode_2.rs:13:20
   |
13 |     let _ = ("아あ", 1i42);
   |                      ^^^^
   |
   = help: valid widths are 8, 16, 32, 64 and 128

error: aborting due to 2 previous errors
```

Spans might display incorrectly on the browser.

r? @estebank
2017-11-04 23:09:19 +00:00
..
Cargo.toml librustc_errors: Don't emit the same error message twice. 2017-10-25 15:01:06 +02:00
diagnostic_builder.rs Make the difference between lint codes and error codes explicit 2017-11-02 10:19:41 +01:00
diagnostic.rs Make the difference between lint codes and error codes explicit 2017-11-02 10:19:41 +01:00
emitter.rs Auto merge of #45711 - tirr-c:unicode-span, r=estebank 2017-11-04 23:09:19 +00:00
lib.rs Make the difference between lint codes and error codes explicit 2017-11-02 10:19:41 +01:00
lock.rs
registry.rs
snippet.rs librustc_errors: Don't emit the same error message twice. 2017-10-25 15:01:06 +02:00
styled_buffer.rs Fix mispositioned error indicators 2017-09-07 10:26:27 +02:00