Skip to content

Error message when rust-version MAJOR is in the future (2, 2.0 or 2.0.0 or higher) #16018

@peter-lyons-kehl

Description

@peter-lyons-kehl

Problem

Please, parse rust-version correctly. The current way (on both stable and nightly) is amusing:

❯ grep rust-version Cargo.toml 
rust-version = "2.92.0"

❯ cargo +nightly check --ignore-rust-version
error: failed to parse manifest at `/share/pkehl/GIT/ndd/Cargo.toml`

Caused by:
  rust-version 2.92.0 is older than first version (1.85.0) required by the specified edition (2024)

Applicable to local (path-based) dependencies or GIT-based dependencies, but regardless, the current parsing is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-bugCategory: bugE-easyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions