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

chore: Remove repeated words (extension of #124924) #124948

Merged
merged 1 commit into from
May 19, 2024

Conversation

blyxyas
Copy link
Member

@blyxyas blyxyas commented May 9, 2024

When I saw #124924 I thought "Hey, I'm sure that there are far more than just two typos of this nature in the codebase". So here's some more typo-fixing.

Some found with regex, some found with a spellchecker. Every single one manually reviewed by me (along with hundreds of false negatives by the tools)

@rustbot
Copy link
Collaborator

rustbot commented May 9, 2024

r? @michaelwoerister

rustbot has assigned @michaelwoerister.
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 A-testsuite Area: The testsuite used to check the correctness of rustc PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 9, 2024
@rustbot
Copy link
Collaborator

rustbot commented May 9, 2024

The Miri subtree was changed

cc @rust-lang/miri

Some changes occurred in src/tools/rustfmt

cc @rust-lang/rustfmt

Some changes occurred in compiler/rustc_sanitizers

cc @rust-lang/project-exploit-mitigations, @rcvalle

Some changes occurred in src/tools/compiletest

cc @jieyouxu

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Portable SIMD is developed in its own repository. If possible, consider making this change to rust-lang/portable-simd instead.

cc @calebzulawski, @programmerjake

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

@rustbot rustbot added A-rustdoc-json Area: Rustdoc JSON backend T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels May 9, 2024
@@ -704,7 +704,7 @@ impl Tree {
}

/// Traverses the entire tree looking for useless tags.
/// Returns true iff the tag it was called on is still live or has live children,
Copy link
Member

Choose a reason for hiding this comment

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

issue: no, "iff" is short for "if and only if"

Copy link
Member Author

Choose a reason for hiding this comment

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

Something I didn't know, thanks for the info! (Fixed)

Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

two issues but otherwise fine

@@ -61,7 +61,7 @@ pub enum IsolatedOp {
/// Reject an op requiring communication with the host. By
/// default, miri rejects the op with an abort. If not, it returns
/// an error code, and prints a warning about it. Warning levels
/// are controlled by `RejectOpWith` enum.
/// are controlled by `RejectOpWith` en um.
Copy link
Member

Choose a reason for hiding this comment

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

issue: oops?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ironic that the typo-fixing PR has a typo. This happened because I pressed the wrong button on the typo-fixing tool 😅 (Fixed)

@Manishearth
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 9, 2024

📌 Commit 94b4fcf has been approved by Manishearth

It is now in the queue for this repository.

@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 May 9, 2024
@blyxyas
Copy link
Member Author

blyxyas commented May 9, 2024

No wait I accidentally removed the second commit
@bors r-

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 9, 2024
@Manishearth
Copy link
Member

i was trying to find the interdiff and confused where it went lol

@blyxyas
Copy link
Member Author

blyxyas commented May 9, 2024

Quirks of doing a git reset and things not going as expected (should have commit another one and rebased)
@bors r=Manishearth

@bors
Copy link
Contributor

bors commented May 9, 2024

📌 Commit d567733 has been approved by Manishearth

It is now in the queue for this repository.

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 9, 2024
@compiler-errors
Copy link
Member

compiler-errors commented May 10, 2024

@bors r-

Please remove the changes to rustfmt. They definitely don't want changes to be made to their repo made through r-l/rust unless it's necessary for keeping rustfmt building.

I would assume the same is true for other submodules in the repo, and we definitely haven't let anyone in the quite large ping list in this PR speak up, so let's leave this PR open for anyone else to chime in, since there's no particular rush to land this now. For example, I don't think this PR needs to touch rust-analyzer either.

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 10, 2024
@ytmimi
Copy link
Contributor

ytmimi commented May 10, 2024

@compiler-errors thanks for catching the rustfmt changes!

@blyxyas rustfmt is developed in https://github.com/rust-lang/rustfmt, and we'd appreciate if you opened a PR there.

@@ -251,7 +251,7 @@ impl Command {
cmd!(sh, "git fetch http://localhost:{JOSH_PORT}/rust-lang/rust.git@{commit}{JOSH_FILTER}.git")
.run()
.map_err(|e| {
// Try to un-do the previous `git commit`, to leave the repo in the state we found it it.
// Try to un-do the previous `git commit`, to leave the repo in the state we found it.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Try to un-do the previous `git commit`, to leave the repo in the state we found it.
// Try to un-do the previous `git commit`, to leave the repo in the state we found it in.

@RalfJung
Copy link
Member

Miri is fine with patches in-tree. However, note that we have a general policy against large typo-fix-only PRs that don't come with tooling that would prevent such PRs in the future. I guess for this PR the sunk cost is too high to close it now...

Copy link
Member

@lnicola lnicola left a comment

Choose a reason for hiding this comment

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

In RA we gladly take typo fixes, but for now we definitely want them in the upstream repository.

@RalfJung
Copy link
Member

Since this keeps coming up, here's the policy decision. It was more about style changes than typo fixes, so I misremembered.

Still... this should be easier to find, I just don't know how.^^

@Manishearth
Copy link
Member

clippy is also fine with minor patches in tree

@programmerjake
Copy link
Member

icr for sure, but iirc portable-simd is fine with typo fixes

@matthiaskrgr
Copy link
Member

wondering if it makes sense to have a a tidy lint for this.

@programmerjake
Copy link
Member

wondering if it makes sense to have a a tidy lint for this.

false positives would not be all that uncommon...
e.g.:

To handle all this this action rolls-its-own implementation using the

@matthiaskrgr
Copy link
Member

I think there should be a comma after the first 'this'? 🤔 Should prevent the lint from firing then.

bors added a commit to rust-lang/rust-analyzer that referenced this pull request May 15, 2024
Chore: Fix some typos

rust-lang/rust#124948

> In RA we gladly take typo fixes, but for now we definitely want them in the upstream repository.
@rustbot
Copy link
Collaborator

rustbot commented May 18, 2024

Some changes occurred in src/tools/cargo

cc @ehuss

@compiler-errors
Copy link
Member

Pls fix the cargo subtree modification, otherwise looks fine to me.

lnicola pushed a commit to lnicola/rust that referenced this pull request May 19, 2024
Chore: Fix some typos

rust-lang#124948

> In RA we gladly take typo fixes, but for now we definitely want them in the upstream repository.
@blyxyas
Copy link
Member Author

blyxyas commented May 19, 2024

It should be all right now! :D

@compiler-errors
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented May 19, 2024

📌 Commit c5c820e has been approved by compiler-errors

It is now in the queue for this repository.

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 19, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2024
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#124948 (chore: Remove repeated words (extension of rust-lang#124924))
 - rust-lang#124992 (Add example to IsTerminal::is_terminal)
 - rust-lang#125279 (make `Debug` impl for `Term` simpler)
 - rust-lang#125286 (Miri subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit d5bef41 into rust-lang:master May 19, 2024
6 checks passed
@rustbot rustbot added this to the 1.80.0 milestone May 19, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2024
Rollup merge of rust-lang#124948 - blyxyas:remove-repeated-words, r=compiler-errors

chore: Remove repeated words (extension of rust-lang#124924)

When I saw rust-lang#124924 I thought "Hey, I'm sure that there are far more than just two typos of this nature in the codebase". So here's some more typo-fixing.

Some found with regex, some found with a spellchecker. Every single one manually reviewed by me (along with hundreds of false negatives by the tools)
bors pushed a commit to rust-lang-ci/rust that referenced this pull request May 30, 2024
…ompiler-errors

chore: Remove repeated words (extension of rust-lang#124924)

When I saw rust-lang#124924 I thought "Hey, I'm sure that there are far more than just two typos of this nature in the codebase". So here's some more typo-fixing.

Some found with regex, some found with a spellchecker. Every single one manually reviewed by me (along with hundreds of false negatives by the tools)
bors added a commit to rust-lang-ci/rust that referenced this pull request May 30, 2024
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#124948 (chore: Remove repeated words (extension of rust-lang#124924))
 - rust-lang#124992 (Add example to IsTerminal::is_terminal)
 - rust-lang#125279 (make `Debug` impl for `Term` simpler)
 - rust-lang#125286 (Miri subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-json Area: Rustdoc JSON backend A-testsuite Area: The testsuite used to check the correctness of rustc PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.