Skip to content

E0054 needs to be updated to new format #35791

Closed
@sophiajt

Description

@sophiajt

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

E0054 needs a span_label, updating it from:

error[E0054]: cannot cast as `bool`
  --> src/test/compile-fail/E0054.rs:13:24
   |
13 |     let x_is_nonzero = x as bool; //~ ERROR E0054
   |                        ^^^^^^^^^
   |
   = help: compare with zero instead

To:

error[E0054]: cannot cast as `bool`
  --> src/test/compile-fail/E0054.rs:13:24
   |
13 |     let x_is_nonzero = x as bool; //~ ERROR E0054
   |                        ^^^^^^^^^ unsupported cast
   |
   = help: compare with zero instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions