Skip to content

Added two version of reverse and a swap function to the standard library. - #396

Closed
eholk wants to merge 1 commit into
rust-lang:masterfrom
eholk:reverse
Closed

eholk wants to merge 1 commit into
rust-lang:masterfrom
eholk:reverse

Conversation

@eholk

@eholk eholk commented May 19, 2011

Copy link
Copy Markdown
Contributor

One version does the reverse in place, using swap, and the other makes a reversed copy of the vector.

@graydon

graydon commented May 20, 2011

Copy link
Copy Markdown
Contributor

Integrated, thanks.

@graydon graydon closed this May 20, 2011
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this pull request Mar 7, 2023
* Handle dupnoneed in forward mode

* Fix allocs with more than one parameter (rust-lang#397)

* Add test
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this pull request Feb 21, 2024
dpaoliello pushed a commit to dpaoliello/rust that referenced this pull request Mar 22, 2024
Fix build error on big endian aarch64
tautschnig added a commit to carolynzech/rust that referenced this pull request Jul 10, 2025
…t-lang#396)

While the prior fixes made sure that submodule changes are picked up,
the attempt to commit would fail when there were _no_ changes. See
https://github.com/model-checking/verify-rust-std/actions/runs/15878565075/job/44772389751
for a failing run.

Now we will only attempt to commit when there are changes.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
noscripter pushed a commit to noscripter/rust that referenced this pull request Sep 8, 2025
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
396: Fix the `panic` found whilst fuzzing r=matklad,me a=DJMcNab

This occurred when a non-ascii character was used in an ascii escape, for example in the motivating example: `if'\xɿ`, which can be further simplified to `'\xɿ`.

Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
398: Fix the same bug as rust-lang#396 but for bytes too r=matklad a=DJMcNab

rust-lang#396

Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants