Skip to content

Incorrect use of deprecated attribute #34

Description

@estebank

rust-lang/rust#56896 is making the correct use of deprecated mandatory in rustc. We can't apply this as a hard error due to the following use in gcode:

[INFO] [stderr]     Checking gcode v0.3.1 (/opt/crater/workdir)
[INFO] [stderr] error: expected meta item sequence
[INFO] [stderr]   --> src/types.rs:53:5
[INFO] [stderr]    |
[INFO] [stderr] 53 |     #[deprecated = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead"]
[INFO] [stderr]    |     ^^--------------------------------------------------------------------------------------------------------^
[INFO] [stderr]    |       |
[INFO] [stderr]    |       help: use the `note` key: `deprecated(note = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead")`
[INFO] [stderr] 
[INFO] [stderr] error: expected meta item sequence
[INFO] [stderr]   --> src/types.rs:53:5
[INFO] [stderr]    |
[INFO] [stderr] 53 |     #[deprecated = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead"]
[INFO] [stderr]    |     ^^--------------------------------------------------------------------------------------------------------^
[INFO] [stderr]    |       |
[INFO] [stderr]    |       help: use the `note` key: `deprecated(note = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead")`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions