Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reverse search alias for Iterator::rev() #83066

Merged
merged 1 commit into from
Mar 14, 2021
Merged

Conversation

Seppel3210
Copy link
Contributor

When searching for "reverse" in rustdoc you can't find the rev method on Iterator so here is a search alias for that.

@rust-highfive
Copy link
Collaborator

r? @joshtriplett

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 13, 2021
Comment on lines 2739 to 2741
#[doc(alias = "reverse")]
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]

This comment was marked as resolved.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't seen anything indicating length-sorting in any of the contribution documentation, and I also haven't seen examples of that in the compiler source. From what I can tell, order is generally (in order of importance):

  • Semantically significant ordering (if one attribute affects another)
  • Grouping related attributes (e.g. multiple stability-related attributes)
  • More-or-less alphabetical.

This ordering seems consistent with that, to me.

Is there some policy I'm unaware of?

Copy link
Member

@ibraheemdev ibraheemdev Mar 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshtriplett I don't think there is a policy, you would know better than me if there was :) I just thought it looked better and more consistent that way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just looked one or two examples elsewhere and just did that but I can also change it to that I guess :)

Copy link
Member

@ibraheemdev ibraheemdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@joshtriplett
Copy link
Member

r=me, after the formatting discussion is resolved one way or the other.

@Seppel3210
Copy link
Contributor Author

This should be fine now? @ibraheemdev

@Seppel3210
Copy link
Contributor Author

@bors r=joshtriplett

@bors
Copy link
Contributor

bors commented Mar 13, 2021

@Seppel3210: 🔑 Insufficient privileges: Not in reviewers

@Seppel3210
Copy link
Contributor Author

😔

@Seppel3210
Copy link
Contributor Author

@joshtriplett , @ibraheemdev could one of you approve that then 🙂

@ibraheemdev
Copy link
Member

I don't have sufficient privileges either.

@joshtriplett
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 13, 2021

📌 Commit f201746 has been approved by joshtriplett

@bors bors 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 Mar 13, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 14, 2021
Rollup of 10 pull requests

Successful merges:

 - rust-lang#81465 (Add documentation about formatting `Duration` values)
 - rust-lang#82121 (Implement Extend and FromIterator for OsString)
 - rust-lang#82617 (Document `everybody_loops`)
 - rust-lang#82789 (Get with field index from pattern slice instead of directly indexing)
 - rust-lang#82798 (Rename `rustdoc` to `rustdoc::all`)
 - rust-lang#82804 (std: Fix a bug on the wasm32-wasi target opening files)
 - rust-lang#82943 (Demonstrate best practice for feeding stdin of a child processes)
 - rust-lang#83066 (Add `reverse` search alias for Iterator::rev())
 - rust-lang#83070 (Update cargo)
 - rust-lang#83081 (Fix panic message of `assert_failed_inner`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 54546a8 into rust-lang:master Mar 14, 2021
@rustbot rustbot added this to the 1.52.0 milestone Mar 14, 2021
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants