Skip to content

Conversation

scrabsha
Copy link
Contributor

@scrabsha scrabsha commented Sep 1, 2025

Mistakenly introduced by me in #145792 and #145206, reported in #145819 (comment).

On top of #145819 (comment).

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 1, 2025
@jdonszelmann
Copy link
Contributor

@rustbot blocked

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 1, 2025
@scrabsha scrabsha changed the title Fix note message style for "crate-level attr used as outer attr" error Fix message style for "crate-level attr used as outer attr" and "invalid custom_mir" errors Sep 1, 2025
@scrabsha
Copy link
Contributor Author

scrabsha commented Sep 1, 2025

i reviewed my recent PRs and figured i did the same mistake for #[custom_mir]. this force-push fixes this as well.

@scrabsha
Copy link
Contributor Author

scrabsha commented Sep 1, 2025

just checked the rest of the codebase - there are several other error messages that start with a capitalized letter - i'll find them all and will open a pr over master rather rather than jana's branch.

@scrabsha scrabsha closed this Sep 1, 2025
scrabsha added a commit to scrabsha/rust that referenced this pull request Sep 2, 2025
a more general version of rust-lang#146080.

after a bit of hacking in [`fluent.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_fluent_macro/src/fluent.rs), i discovered that i'm not the only one that is bad at following guidelines 😅. this pr lowercases the first letter of all the error messages in the codebase.

(i did not change things that are traditionally uppercased such as _MIR_, _ABI_ or _C_)

i think it's reasonable to run a `@bors try` so all the test suite is checked, as i cannot run some of the tests on my machine. i double checked (and replaced manually) all the old error messages, but better be safe than sorry.

in the future i will try to add a check in `x test tidy` that errors if an error message starts with an uppercase letter.
scrabsha added a commit to scrabsha/rust that referenced this pull request Sep 3, 2025
a more general version of rust-lang#146080.

after a bit of hacking in [`fluent.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_fluent_macro/src/fluent.rs), i discovered that i'm not the only one that is bad at following guidelines 😅. this pr lowercases the first letter of all the error messages in the codebase.

(i did not change things that are traditionally uppercased such as _MIR_, _ABI_ or _C_)

i think it's reasonable to run a `@bors try` so all the test suite is checked, as i cannot run some of the tests on my machine. i double checked (and replaced manually) all the old error messages, but better be safe than sorry.

in the future i will try to add a check in `x test tidy` that errors if an error message starts with an uppercase letter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-blocked Status: Blocked on something else such as an RFC or other implementation work. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants