[beta 1.95] backport test fixes#16715
Merged
weihanglo merged 3 commits intorust-lang:rust-1.95.0from Mar 6, 2026
Merged
Conversation
### What does this PR try to resolve? Blocks a compiler change, see [#t-cargo > &rust-lang#96;replace::use_a_spec_to_select&rust-lang#96; test failure @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/.60replace.3A.3Ause_a_spec_to_select.60.20test.20failure/near/577341461) ### How to test and review this PR?
### What does this PR try to resolve? Fixes rust-lang#16704 ### How to test and review this PR?
…16714) ### What does this PR try to resolve? rust-lang/rust#152164 added a warn-by-default `unused_features` lint. Cargo injects `#![feature(frontmatter)]` for all embedded scripts, but scripts without frontmatter syntax never trigger feature gate check, and causes causing the lint warning. Given the stabilization FCP of frontmatter [is complete](rust-lang/rust#148051 (comment)) already, we could expect it will soon be stabilized (?). It should be fine we suppress this new unstable lint. ### How to test and review this PR? Test suite passes. See <rust-lang#16713 (comment)> for more.
Collaborator
|
r? @epage rustbot has assigned @epage. Use Why was this reviewer chosen?The reviewer was selected based on:
|
Collaborator
|
weihanglo
approved these changes
Mar 6, 2026
rust-bors bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Mar 7, 2026
[beta] update stage0 and cargo Update stage0 to 1.94.0 <https://forge.rust-lang.org/release/process.html#beta-stage0-update-friday> --- Update cargo submodule #153515 2 commits in f298b8c82da0cba538516b45b04a480fc501d4c0..e8eb8435d5cad936237a1ee798c2f983624d0825 2026-02-24 21:59:20 +0000 to 2026-03-06 12:51:00 -0600 - [beta-1.95] Add missing truncate when writing .crate files (rust-lang/cargo#16713) - [beta 1.95] backport test fixes (rust-lang/cargo#16715)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This backports the following to fix the beta branch and to reduce spurious errors:
unused_featureslint for embedded #16714 -- fix(script): surpress unused_features lint for embedded