diff options
| author | bors <bors@rust-lang.org> | 2017-06-23 00:32:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-06-23 00:32:40 +0000 |
| commit | 737962056a67329e0bc4f47d0f00c7071df16cbb (patch) | |
| tree | caa7da4b7e084d4ef2f245a8a7528013aa6dd68a /src/liballoc_system | |
| parent | bd62230fbdcaf6508dec02a59818f732bd4c1759 (diff) | |
| parent | d09cf46d3247401f6c6ddd871ca79ac0a8bc2f2d (diff) | |
| download | rust-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
