Skip to content

Reword the caveats on array::map#126100

Open
scottmcm wants to merge 1 commit intorust-lang:mainfrom
scottmcm:decaveat-map
Open

Reword the caveats on array::map#126100
scottmcm wants to merge 1 commit intorust-lang:mainfrom
scottmcm:decaveat-map

Conversation

@scottmcm
Copy link
Member

@scottmcm scottmcm commented Jun 6, 2024

Thanks to #107634 and some improvements in LLVM (particularly dead_on_unwind), the method actually optimizes reasonably well now.

So focus the discussion on the fundamental ordering differences where the optimizer might never be able to fix it because of the different behaviour, and keep encouraging Iterator::map where an array wasn't actually ever needed.

@rustbot
Copy link
Collaborator

rustbot commented Jun 6, 2024

r? @m-ou-se

rustbot has assigned @m-ou-se.
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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 6, 2024
@scottmcm scottmcm closed this Jun 7, 2024
@scottmcm scottmcm reopened this Apr 25, 2025
@scottmcm scottmcm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 1, 2025
@SpriteOvO
Copy link
Member

Hi @scottmcm, ping from triage team. Are there any further updates on this PR?

@rustbot
Copy link
Collaborator

rustbot commented Jan 18, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Thanks to 107634 and some improvements in LLVM (particularly `dead_on_unwind`), the method actually optimizes reasonably well now.

So focus the discussion on the fundamental ordering differences where the optimizer might never be able to fix it because of the different behaviour, and encouraging `Iterator::map` where an array wasn't actually ever needed.
@scottmcm
Copy link
Member Author

@rustbot ready
r? the8472

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 18, 2026
@rustbot rustbot assigned the8472 and unassigned m-ou-se Jan 18, 2026
@scottmcm

This comment was marked as resolved.

@rustbot rustbot assigned Mark-Simulacrum and unassigned the8472 Feb 6, 2026
@Mark-Simulacrum
Copy link
Member

@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 8, 2026

📌 Commit bdc08ae 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 8, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 8, 2026
…lacrum

Reword the caveats on `array::map`

Thanks to rust-lang#107634 and some improvements in LLVM (particularly [`dead_on_unwind`](https://llvm.org/docs/LangRef.html#parameter-attributes)), the method actually optimizes reasonably well now.

So focus the discussion on the fundamental ordering differences where the optimizer might never be able to fix it because of the different behaviour, and keep encouraging `Iterator::map` where an array wasn't actually ever needed.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 8, 2026
…lacrum

Reword the caveats on `array::map`

Thanks to rust-lang#107634 and some improvements in LLVM (particularly [`dead_on_unwind`](https://llvm.org/docs/LangRef.html#parameter-attributes)), the method actually optimizes reasonably well now.

So focus the discussion on the fundamental ordering differences where the optimizer might never be able to fix it because of the different behaviour, and keep encouraging `Iterator::map` where an array wasn't actually ever needed.
rust-bors bot pushed a commit that referenced this pull request Feb 8, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #151869 (add test for codegen of SIMD vector from array repeat)
 - #152077 (bootstrap: always propagate `CARGO_TARGET_{host}_LINKER`)
 - #126100 (Reword the caveats on `array::map`)
 - #152275 (Stop having two different alignment constants)
 - #152325 (Remove more adhoc groups that correspond to teams)
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-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants