Skip to content

E0512 needs to be updated to new format #36107

@sophiajt

Description

@sophiajt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions