-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Conversation
rustbot has assigned @michaelwoerister. Use |
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 |
@@ -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, |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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)
There was a problem hiding this 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
src/tools/miri/src/eval.rs
Outdated
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: oops?
There was a problem hiding this comment.
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)
9894740
to
94b4fcf
Compare
@bors r+ rollup |
No wait I accidentally removed the second commit |
i was trying to find the interdiff and confused where it went lol |
94b4fcf
to
d567733
Compare
Quirks of doing a git reset and things not going as expected (should have commit another one and rebased) |
@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. |
@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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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. |
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... |
There was a problem hiding this 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.
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.^^ |
clippy is also fine with minor patches in tree |
icr for sure, but iirc portable-simd is fine with typo fixes |
wondering if it makes sense to have a a tidy lint for this. |
false positives would not be all that uncommon...
|
I think there should be a comma after the first 'this'? 🤔 Should prevent the lint from firing then. |
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.
d567733
to
e38377d
Compare
Some changes occurred in src/tools/cargo cc @ehuss |
Pls fix the cargo subtree modification, otherwise looks fine to me. |
e38377d
to
c5c820e
Compare
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.
It should be all right now! :D |
@bors r+ |
…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
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)
…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)
…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
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)