Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E0512 needs to be updated to new format #36107

Closed
sophiajt opened this issue Aug 29, 2016 · 2 comments · Fixed by #36756
Closed

E0512 needs to be updated to new format #36107

sophiajt opened this issue Aug 29, 2016 · 2 comments · Fixed by #36756

Comments

@sophiajt
Copy link
Contributor

From: src/test/compile-fail/E0512.rs

E0512 needs a span_label, updating it from:

error[E0512]: transmute called with differently sized types: u16 (16 bits) to u8 (8 bits)
  --> src/test/compile-fail/E0512.rs:14:23
   |
14 |     unsafe { takes_u8(::std::mem::transmute(0u16)); } //~ ERROR E0512
   |                       ^^^^^^^^^^^^^^^^^^^^^

to:

error[E0512]: transmute called with differently sized types: u16 (16 bits) to u8 (8 bits)
  --> src/test/compile-fail/E0512.rs:14:23
   |
14 |     unsafe { takes_u8(::std::mem::transmute(0u16)); } //~ ERROR E0512
   |                       ^^^^^^^^^^^^^^^^^^^^^ transmuting between 16 bits and 8 bits
@sophiajt sophiajt changed the title E051 needs to be updated to new format E0512 needs to be updated to new format Aug 29, 2016
@bstrie
Copy link
Contributor

bstrie commented Sep 25, 2016

Freeing this one up as part of the final push for #35233.

sophiajt pushed a commit to sophiajt/rust that referenced this issue Sep 26, 2016
sophiajt pushed a commit to sophiajt/rust that referenced this issue Sep 27, 2016
@gavinb
Copy link
Contributor

gavinb commented Sep 28, 2016

I wrote a patch for this but then found that it had already been done in 157208b. So this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants