Skip to content

E0080 needs better wording #35223

Closed
Closed
@sophiajt

Description

@sophiajt

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

Error E0080 has been updated to the new format, but its wording is awkward. It can be updated from:

error[E0080]: constant evaluation error
  --> src/test/compile-fail/E0080.rs:12:9
   |
12 |     X = (1 << 500), //~ ERROR E0080
   |         ^^^^^^^^^^ attempted to shift left with overflow

error[E0080]: constant evaluation error
  --> src/test/compile-fail/E0080.rs:13:9
   |
13 |     Y = (1 / 0) //~ ERROR E0080
   |         ^^^^^^^ attempted to divide by zero

To:

error[E0080]: constant evaluation error
  --> src/test/compile-fail/E0080.rs:12:9
   |
12 |     X = (1 << 500), //~ ERROR E0080
   |         ^^^^^^^^^^ attempt to shift left with overflow

error[E0080]: constant evaluation error
  --> src/test/compile-fail/E0080.rs:13:9
   |
13 |     Y = (1 / 0) //~ ERROR E0080
   |         ^^^^^^^ attempt to divide by zero

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions