Skip to content

Revert "add regression test for Redundant memory strores with mut parameters in by-value returns" - #158048

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Filiprogrammer:revert-154841
Jun 18, 2026
Merged

Revert "add regression test for Redundant memory strores with mut parameters in by-value returns"#158048
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Filiprogrammer:revert-154841

Conversation

@Filiprogrammer

@Filiprogrammer Filiprogrammer commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This reverts commit 519a555 (PR #154841).

The regression test added by that commit asserts that redundant stores are present, which locks in suboptimal assembly output and will actively block any future fix from landing.

The underlying issue (#149762) is therefore not fixed. Since 1.92.0, both with_rebind and with_mut_param compile to the same suboptimal assembly, whereas in 1.91.0 with_rebind at least produced optimal output. A correct regression test should verify that neither function emits redundant stores, and should be added together with an actual fix.

#149762 (comment)

@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 Jun 17, 2026
@rustbot

rustbot commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

r? @petrochenkov

rustbot has assigned @petrochenkov.
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:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 19 candidates

@rustbot

This comment has been minimized.

…ameters in by-value returns"

This reverts commit 519a555.

The regression test added by that commit asserts that redundant stores
are present, which locks in suboptimal assembly output and will actively
block any future fix from landing.
@Kivooeo

Kivooeo commented Jun 18, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 534c080 has been approved by Kivooeo

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 Jun 18, 2026
@Kivooeo Kivooeo assigned Kivooeo and unassigned petrochenkov Jun 18, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
…vooeo

Revert "add regression test for Redundant memory strores with mut parameters in by-value returns"

This reverts commit 519a555 (PR rust-lang#154841).

The regression test added by that commit asserts that redundant stores are present, which locks in suboptimal assembly output and will actively block any future fix from landing.

The underlying issue (rust-lang#149762) is therefore not fixed. Since 1.92.0, both `with_rebind` and `with_mut_param` compile to the same suboptimal assembly, whereas in 1.91.0 `with_rebind` at least produced optimal output. A correct regression test should verify that neither function emits redundant stores, and should be added together with an actual fix.

rust-lang#149762 (comment)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
…vooeo

Revert "add regression test for Redundant memory strores with mut parameters in by-value returns"

This reverts commit 519a555 (PR rust-lang#154841).

The regression test added by that commit asserts that redundant stores are present, which locks in suboptimal assembly output and will actively block any future fix from landing.

The underlying issue (rust-lang#149762) is therefore not fixed. Since 1.92.0, both `with_rebind` and `with_mut_param` compile to the same suboptimal assembly, whereas in 1.91.0 `with_rebind` at least produced optimal output. A correct regression test should verify that neither function emits redundant stores, and should be added together with an actual fix.

rust-lang#149762 (comment)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
…vooeo

Revert "add regression test for Redundant memory strores with mut parameters in by-value returns"

This reverts commit 519a555 (PR rust-lang#154841).

The regression test added by that commit asserts that redundant stores are present, which locks in suboptimal assembly output and will actively block any future fix from landing.

The underlying issue (rust-lang#149762) is therefore not fixed. Since 1.92.0, both `with_rebind` and `with_mut_param` compile to the same suboptimal assembly, whereas in 1.91.0 `with_rebind` at least produced optimal output. A correct regression test should verify that neither function emits redundant stores, and should be added together with an actual fix.

rust-lang#149762 (comment)
rust-bors Bot pushed a commit that referenced this pull request Jun 18, 2026
Rollup of 8 pull requests

Successful merges:

 - #158056 (Put internal lints into a single combined pass)
 - #151132 (Take care to use MSG_EOR with SOCK_SEQPACKET sockets)
 - #157644 (wasm32-wasip1-threads: Correct llvm target name)
 - #157912 (stabilize str_from_utf16_endian)
 - #158048 (Revert "add regression test for Redundant memory strores with mut parameters in by-value returns")
 - #158051 (Document `with_added_extension` edge cases)
 - #158054 (fix unresolved import suggestion before outer attributes)
 - #158062 (rustc book: Update wasm32-wasip1-threads's maintainers list)
@rust-bors
rust-bors Bot merged commit fd6ca04 into rust-lang:main Jun 18, 2026
13 checks passed
@rustbot rustbot added this to the 1.98.0 milestone Jun 18, 2026
rust-timer added a commit that referenced this pull request Jun 18, 2026
Rollup merge of #158048 - Filiprogrammer:revert-154841, r=Kivooeo

Revert "add regression test for Redundant memory strores with mut parameters in by-value returns"

This reverts commit 519a555 (PR #154841).

The regression test added by that commit asserts that redundant stores are present, which locks in suboptimal assembly output and will actively block any future fix from landing.

The underlying issue (#149762) is therefore not fixed. Since 1.92.0, both `with_rebind` and `with_mut_param` compile to the same suboptimal assembly, whereas in 1.91.0 `with_rebind` at least produced optimal output. A correct regression test should verify that neither function emits redundant stores, and should be added together with an actual fix.

#149762 (comment)
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.

4 participants