about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-23 00:32:40 +0000
committerbors <bors@rust-lang.org>2017-06-23 00:32:40 +0000
commit737962056a67329e0bc4f47d0f00c7071df16cbb (patch)
treecaa7da4b7e084d4ef2f245a8a7528013aa6dd68a /src/liballoc_system
parentbd62230fbdcaf6508dec02a59818f732bd4c1759 (diff)
parentd09cf46d3247401f6c6ddd871ca79ac0a8bc2f2d (diff)
downloadrust-737962056a67329e0bc4f47d0f00c7071df16cbb.tar.gz
rust-737962056a67329e0bc4f47d0f00c7071df16cbb.zip
Auto merge of #42304 - Mark-Simulacrum:issue-37157, r=nikomatsakis
Print the two types in the span label for transmute errors.

Fixes #37157. I'm not entirely happy with the changes here but overall it's better in my opinion; we certainly avoid the odd language in that issue, which changes to:

```
error[E0512]: transmute called with differently sized types: <C as TypeConstructor<'a>>::T (size can vary because of <C as TypeConstructor>::T) to <C as TypeConstructor<'b>>::T (size can vary because of <C as TypeConstructor>::T)
 --> test.rs:8:5
  |
8 |     ::std::mem::transmute(x)
  |     ^^^^^^^^^^^^^^^^^^^^^ transmuting between <C as TypeConstructor<'a>>::T and <C as TypeConstructor<'b>>::T

error: aborting due to previous error(s)
```
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions