rust/src/libsyntax_pos
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 Display spans correctly when there are non-half-width characters 2017-11-03 03:15:39 +09:00
hygiene.rs Compress "small" spans to 32 bits and intern "large" spans 2017-09-23 00:34:13 +03:00
lib.rs Display spans correctly when there are non-half-width characters 2017-11-03 03:15:39 +09:00
span_encoding.rs Compress "small" spans to 32 bits and intern "large" spans 2017-09-23 00:34:13 +03:00
symbol.rs add auto keyword, parse auto trait, lower to HIR 2017-11-03 16:13:20 -02:00