Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 19, 2024

e.g. this will start to show Rust 1.31.0 as the required minimum version for https://crates.io/crates/syn/1.0.0 since it declares edition = "2018" but without an explicit rust-version.

Related:

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels Nov 19, 2024
@Turbo87 Turbo87 enabled auto-merge (squash) November 19, 2024 08:41
@Turbo87 Turbo87 merged commit 93f8da5 into rust-lang:main Nov 19, 2024
8 of 9 checks passed
@Turbo87 Turbo87 deleted the inferred-msrv branch November 19, 2024 08:43
LawnGnome added a commit to LawnGnome/crates.io that referenced this pull request Nov 29, 2024
In rust-lang#9996, we started showing the MSRV based on the edition for crate
versions that declare an edition but not a `rust-version` in their
manifest. This isn't strictly correct: a crate may require features
added later in an edition than in the first Rust version that defined
that edition, and showing this as an MSRV implies a level of support
that the crate author may not have intended.

So, we shouldn't show an MSRV if one isn't declared, but we _can_ show
the edition if one of those is defined. Let's do that.

Fixes rust-lang#10103.
Turbo87 pushed a commit that referenced this pull request Dec 2, 2024
In #9996, we started showing the MSRV based on the edition for crate
versions that declare an edition but not a `rust-version` in their
manifest. This isn't strictly correct: a crate may require features
added later in an edition than in the first Rust version that defined
that edition, and showing this as an MSRV implies a level of support
that the crate author may not have intended.

So, we shouldn't show an MSRV if one isn't declared, but we _can_ show
the edition if one of those is defined. Let's do that.

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

Labels

A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant