Skip to content

extend unpin noalias tests to cover mutable references#152970

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
RalfJung:unpin-noalias-tests
Feb 23, 2026
Merged

extend unpin noalias tests to cover mutable references#152970
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
RalfJung:unpin-noalias-tests

Conversation

@RalfJung
Copy link
Member

#152946 made a change to the logic for this attribute that the test should have flagged as problematic -- but the test only checked Box, not &mut, and those have independent code paths. So extend the test to also cover &mut.

@b-naber would be nice if you could confirm that the added tests do fail with your PR.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 22, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 22, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Fallback group: @Mark-Simulacrum, @jieyouxu
  • @Mark-Simulacrum, @jieyouxu expanded to Mark-Simulacrum, jieyouxu
  • Random selection from Mark-Simulacrum, jieyouxu

@RalfJung RalfJung force-pushed the unpin-noalias-tests branch 2 times, most recently from 9d969eb to 9eb102b Compare February 22, 2026 14:12
@rust-log-analyzer

This comment has been minimized.

@RalfJung RalfJung force-pushed the unpin-noalias-tests branch from 9eb102b to b56949b Compare February 22, 2026 14:24
@Mark-Simulacrum
Copy link
Member

@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 22, 2026

📌 Commit b56949b has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 22, 2026
rust-bors bot pushed a commit that referenced this pull request Feb 23, 2026
Rollup of 9 pull requests

Successful merges:

 - #152229 (Remove deterministic picking from query cycle handling)
 - #152970 (extend unpin noalias tests to cover mutable references)
 - #149783 (stabilize `cfg_select!`)
 - #151744 (fix refining_impl_trait suggestion with return_type_notation)
 - #152366 (Add try_shrink_to and try_shrink_to_fit to Vec)
 - #152640 (Add direct link to rustc-dev-guide in README)
 - #152963 (Revert "Stabilize `str_as_str`")
 - #152984 (Remove redundant call to `check_codegen_attributes_extra` in Inliner)
 - #152987 (Use `HashStable` derive in more places)
@rust-bors rust-bors bot merged commit 62bc872 into rust-lang:main Feb 23, 2026
11 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 23, 2026
rust-timer added a commit that referenced this pull request Feb 23, 2026
Rollup merge of #152970 - RalfJung:unpin-noalias-tests, r=Mark-Simulacrum

extend unpin noalias tests to cover mutable references

#152946 made a change to the logic for this attribute that the test should have flagged as problematic -- but the test only checked `Box`, not `&mut`, and those have independent code paths. So extend the test to also cover `&mut`.

@b-naber would be nice if you could confirm that the added tests do fail with your PR.
@b-naber
Copy link
Contributor

b-naber commented Feb 23, 2026

Yes, the tests fail with #152946.

RalfJung pushed a commit to RalfJung/miri that referenced this pull request Feb 24, 2026
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#152229 (Remove deterministic picking from query cycle handling)
 - rust-lang/rust#152970 (extend unpin noalias tests to cover mutable references)
 - rust-lang/rust#149783 (stabilize `cfg_select!`)
 - rust-lang/rust#151744 (fix refining_impl_trait suggestion with return_type_notation)
 - rust-lang/rust#152366 (Add try_shrink_to and try_shrink_to_fit to Vec)
 - rust-lang/rust#152640 (Add direct link to rustc-dev-guide in README)
 - rust-lang/rust#152963 (Revert "Stabilize `str_as_str`")
 - rust-lang/rust#152984 (Remove redundant call to `check_codegen_attributes_extra` in Inliner)
 - rust-lang/rust#152987 (Use `HashStable` derive in more places)
@RalfJung RalfJung deleted the unpin-noalias-tests branch February 24, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants