]> git.lizzy.rs Git - rust.git/commit
Auto merge of #6787 - matthiaskrgr:lint_msgs, r=llogiq
authorbors <bors@rust-lang.org>
Sun, 28 Feb 2021 20:57:48 +0000 (20:57 +0000)
committerbors <bors@rust-lang.org>
Sun, 28 Feb 2021 20:57:48 +0000 (20:57 +0000)
commitac2f041b4787a128f4eaf26736c2d2df40e2bee6
treedc723ab5a7d31ac5ee90b1acead3ac7a26802411
parentabd2c7ebfb47b3e2dbbb3ce3a7a54ef3847bb7dc
parentebc5c8f271cdb9e64f56b19273ff87745639433c
Auto merge of #6787 - matthiaskrgr:lint_msgs, r=llogiq

tests: add test that roughly ensures that our lint messages conform with the diagnostics convention of the rustc dev guide

lint message should not start with uppercase letters
lint messages should not have punctuation at the end of the last line

https://rustc-dev-guide.rust-lang.org/diagnostics.html#diagnostic-structure

The test reads through all the .stderr files in the testsuit and checks lint messages that start with "help: ", "error: " etc.
There is also an exception list for special messages that are deemed acceptable.

changelog: make sure lint messages conform with the rustc dev guide and add test