Skip to content

Conversation

scrabsha
Copy link
Contributor

@scrabsha scrabsha commented Sep 3, 2025

Next step after #146112. The implementation of this is better than the hacks I wrote earlier, which allowed me to discover more capitalized error messages.

@rustbot blocked
r? @WaffleLapkin

@rustbot
Copy link
Collaborator

rustbot commented Sep 3, 2025

WaffleLapkin is not on the review rotation at the moment.
They may take a while to respond.

@rustbot rustbot added A-tidy Area: The tidy tool S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) S-blocked Status: Blocked on something else such as an RFC or other implementation work. labels Sep 3, 2025
@rust-log-analyzer

This comment has been minimized.

@scrabsha scrabsha force-pushed the push-wovnxxwltsun branch 2 times, most recently from 0b8a1dd to 4d08e6e Compare September 4, 2025 08:50
@scrabsha scrabsha marked this pull request as ready for review September 4, 2025 08:50
@rustbot rustbot 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 Sep 4, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 4, 2025

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

@scrabsha
Copy link
Contributor Author

scrabsha commented Sep 4, 2025

@rustbot ready

@pietroalbini pietroalbini removed the S-blocked Status: Blocked on something else such as an RFC or other implementation work. label Sep 4, 2025
Comment on lines +61 to +62
&mut |ent, contents| {
check_lowercase(ent.path().to_str().unwrap(), contents, bad);
},
Copy link
Member

Choose a reason for hiding this comment

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

q: doesn't this get called for dirs? if so, you should probably add a check for them here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is not called on dirs because we filter out dirs right before that:

        |path, is_dir| filter_dirs(path) || (!is_dir && filter_fluent(path)),

Copy link
Member

Choose a reason for hiding this comment

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

that's not what filter_dirs does though? (otherwise you'd just have !is_dir &&) (filter_dirs seems to just ignore common dirs you want to ignore)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's not what filter_dirs does though?

You're right! My comment was terribly badly worded, sorry :(. (I shouldn't have used words "filter out")

This is not called on dirs due to the !is_dir part of the lign I quoted, not because of the filter_dirs bit

But now that you ask, I have to admit there's something fishy with the && and || in the condition (honestly, I copied this from the other fluent-related checks). I'll try to write down the truth table for this tomorrow.

@rustbot rustbot 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 Sep 7, 2025
@rustbot rustbot 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 Sep 10, 2025
@WaffleLapkin
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Sep 13, 2025

📌 Commit b152974 has been approved by WaffleLapkin

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 Sep 13, 2025
bors added a commit that referenced this pull request Sep 13, 2025
Rollup of 8 pull requests

Successful merges:

 - #113095 (Document `become` keyword)
 - #146159 (Some hygiene doc improvements)
 - #146171 (tidy: check that error messages don't start with a capitalized letter)
 - #146419 (Update the arm-* and aarch64-* platform docs.)
 - #146473 (Revert "Constify SystemTime methods")
 - #146506 (Fix small typo in check-cfg.md)
 - #146517 (fix Condvar::wait_timeout docs)
 - #146521 (document `core::ffi::VaArgSafe`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 141cb38 into rust-lang:master Sep 14, 2025
10 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Sep 14, 2025
rust-timer added a commit that referenced this pull request Sep 14, 2025
Rollup merge of #146171 - scrabsha:push-wovnxxwltsun, r=WaffleLapkin

tidy: check that error messages don't start with a capitalized letter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tidy Area: The tidy tool 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.

6 participants