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

Make tidy errors red #106286

Merged
merged 2 commits into from
Dec 31, 2022
Merged

Make tidy errors red #106286

merged 2 commits into from
Dec 31, 2022

Conversation

Noratrieb
Copy link
Member

This makes it easier to see them (and makes people go owo).

I also changes the error codes check to not print too many things and use tidy_error.

r? @jyn514

@rustbot rustbot added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) A-testsuite Area: The testsuite used to check the correctness of rustc labels Dec 30, 2022
@Noratrieb Noratrieb marked this pull request as ready for review December 30, 2022 12:06
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 30, 2022
@Noratrieb Noratrieb changed the title Make errors red Make tidy errors red Dec 30, 2022
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

before:

tidy check
Checking which error codes lack tests...
* 633 error codes
* highest error code: E0791
tidy error: /home/gh-jyn514/rust2/compiler/rustc_error_codes/src/error_codes/E0790.md: empty file
tidy error: /home/gh-jyn514/rust2/compiler/rustc_error_codes/src/error_codes/E0790.md: leading newline
* 393 features
`/home/gh-jyn514/rust2/compiler/rustc_error_codes/src/error_codes/E0790.md` doesn't use its own error code in compile_fail example
Found 1 error(s) in error codes
Done!
some tidy checks failed

after:

tidy check
* 633 error codes
* highest error code: E0791
tidy error: /home/gh-jyn514/rust2/compiler/rustc_error_codes/src/error_codes/E0790.md: empty file
tidy error: /home/gh-jyn514/rust2/compiler/rustc_error_codes/src/error_codes/E0790.md: leading newline
* 393 features
tidy error: `/home/gh-jyn514/rust2/compiler/rustc_error_codes/src/error_codes/E0790.md` doesn't use its own error code in compile_fail example
some tidy checks failed

The changes in text look reasonable, but I'm not seeing them show up as red? Am I missing something?

image

@jyn514 jyn514 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-review Status: Awaiting review from the assignee but also interested parties. labels Dec 30, 2022
Copy link
Member Author

@Noratrieb Noratrieb left a comment

Choose a reason for hiding this comment

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

whoops, accidentally buffered this comment instead of directly sending it

src/tools/tidy/src/deps.rs Outdated Show resolved Hide resolved
src/tools/tidy/src/lib.rs Outdated Show resolved Hide resolved
This makes it easier to see them (and makes people go owo).
@jyn514
Copy link
Member

jyn514 commented Dec 30, 2022

Looks great, thanks! r=me with CI passing :)

@jyn514 jyn514 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 30, 2022
@jyn514
Copy link
Member

jyn514 commented Dec 30, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Dec 30, 2022

📌 Commit 75b3ee2 has been approved by jyn514

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 Dec 30, 2022
@jyn514
Copy link
Member

jyn514 commented Dec 30, 2022

@bors rollup

jyn514 added a commit to jyn514/rust that referenced this pull request Dec 31, 2022
Make tidy errors red

This makes it easier to see them (and makes people go owo).

I also changes the error codes check to not print too many things and use `tidy_error`.

r? `@jyn514`
jyn514 added a commit to jyn514/rust that referenced this pull request Dec 31, 2022
Make tidy errors red

This makes it easier to see them (and makes people go owo).

I also changes the error codes check to not print too many things and use `tidy_error`.

r? ``@jyn514``
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 31, 2022
…mpiler-errors

Rollup of 9 pull requests

Successful merges:

 - rust-lang#105903 (Unify id-based thread parking implementations)
 - rust-lang#106232 (CFI: Monomorphize transparent ADTs before typeid)
 - rust-lang#106248 (Revert "Implement allow-by-default `multiple_supertrait_upcastable` lint")
 - rust-lang#106286 (Make tidy errors red)
 - rust-lang#106295 (Extend scraped examples layout GUI test for position of buttons)
 - rust-lang#106305 ( bootstrap: Get rid of tail_args in stream_cargo)
 - rust-lang#106310 (Dont use `--merge-base` during bootstrap formatting subcommand)
 - rust-lang#106314 (Fix panic on `x build --help`)
 - rust-lang#106317 (Only deduplicate stack traces for good path bugs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 81808b7 into rust-lang:master Dec 31, 2022
@rustbot rustbot added this to the 1.68.0 milestone Dec 31, 2022
@Noratrieb Noratrieb deleted the tidy-cowows branch December 31, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc 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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants