]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #68096 - varkor:diagnostic-cleanup, r=Centril
authorDylan DPC <dylan.dpc@gmail.com>
Thu, 16 Jan 2020 06:28:02 +0000 (11:58 +0530)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2020 06:28:02 +0000 (11:58 +0530)
commit1389caf860a7e464b66d6d67180025c598975739
tree5dbf2f1516655527b14dcf44d7a27d19d266f987
parent6b83862d09fe3cb04de50c335428b2ac5b2307ce
parent1faa05daac8069503a0ffbba735db3b259424296
Rollup merge of #68096 - varkor:diagnostic-cleanup, r=Centril

Clean up some diagnostics by making them more consistent

In general:

- Diagnostic should start with a lowercase letter.
- Diagnostics should not end with a full stop.
- Ellipses contain three dots.
- Backticks should encode Rust code.

I also reworded a couple of messages to make them read more clearly.

It might be sensible to create a style guide for diagnostics, so these informal conventions are written down somewhere, after which we could audit the existing diagnostics.

r? @Centril
src/librustc/traits/error_reporting.rs
src/librustc_lint/builtin.rs
src/libstd/panicking.rs
src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.rs