tidy: replace make check
with ./x.py test
in documentation by chrissimpkins · Pull Request #69603 · rust-lang/rust (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation15 Commits6 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
This PR includes a minor documentation update for tidy. It replaces the make check
approach with ./x.py test
and describes how to execute the tidy checks (only) with ./x.py test src/tools/tidy
./x.py test tidy
.
(rust_highfive has picked a reviewer for you, use r? to override)
re: #69603 (comment)
@petrochenkov Here is what I see with ./x.py tidy -h
. I think that we should fix this if we are going to consider that sub-command the default approach.
info: Downloading and building bootstrap before processing --help
command. See src/bootstrap/README.md for help with common
commands.
Updating only changed submodules
Submodules updated in 0.05 seconds
Finished dev [unoptimized] target(s) in 0.15s
Usage: x.py <subcommand> [options] [<paths>...]
Subcommands:
build Compile either the compiler or libraries
check Compile either the compiler or libraries, using cargo check
clippy Run clippy (uses rustup/cargo-installed clippy binary)
fix Run cargo fix
fmt Run rustfmt
test Build and run some test suites
bench Build and run some benchmarks
doc Build documentation
clean Clean out build directories
dist Build distribution artifacts
install Install distribution artifacts
To learn more about a subcommand, run `./x.py <subcommand> -h`
failed to run: /Users/chris/code-ext/rustlang/rust/build/bootstrap/debug/bootstrap tidy -h
r? @petrochenkov -- I didn't know about the shortcut either, so clearly I'm not the best to review. :)
Here is what I see with
./x.py tidy -h
.
This is not surprising, given that tidy
is not a subcommand by itself, but a target of the x.py test
command.
x.py test --help
could say something about x.py test src/tools/tool
and the x.py test tool
shortcut.
Thanks Vadim!
This is not surprising, given that tidy is not a subcommand by itself, but a target of the x.py test command.
Apologies. I think that I misread the earlier comment.
x.py test --help could say something about x.py test src/tools/tool and the x.py test tool shortcut.
I will update the test help and let you know when it is available.
There's also a shortcut ./x.py test tidy.
x.py test --help could say something about x.py test src/tools/tool and the x.py test tool shortcut.
Added in 9f734c9
./x.py test --help
includes the following information after these changes:
I believe that I addressed all of your suggestions. Please let me know if there are any other locations in this repository where this information might be of use.
📌 Commit c60d581 has been approved by petrochenkov
🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened
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
bors added a commit that referenced this pull request
Rollup of 8 pull requests
Successful merges:
- #66472 (--show-coverage json)
- #69603 (tidy: replace
make check
with./x.py test
in documentation) - #69760 (Improve expression & attribute parsing)
- #69828 (fix memory leak when vec::IntoIter panics during drop)
- #69850 (panic_bounds_check: use caller_location, like PanicFnLangItem)
- #69876 (Add long error explanation for E0739)
- #69888 ([Miri] Use a session variable instead of checking for an env var always)
- #69893 (librustc_codegen_llvm: Use slices instead of 0-terminated strings)
Failed merges:
r? @ghost
Labels
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.