File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -295,8 +295,14 @@ impl EarlyLintPass for FooFunctions {
295295
296296Running our UI test should now produce output that contains the lint message.
297297
298+ According to [ the rustc-dev-guide] , the text should be matter of fact and avoid
299+ capitalization and periods, unless multiple sentences are needed.
300+ When code or an identifier must appear in a message or label, it should be
301+ surrounded with single acute accents \` .
302+
298303[ check_fn ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/trait.EarlyLintPass.html#method.check_fn
299304[ diagnostics ] : https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/utils/diagnostics.rs
305+ [ the rustc-dev-guide ] : https://rustc-dev-guide.rust-lang.org/diagnostics.html
300306
301307## Adding the lint logic
302308
You can’t perform that action at this time.
0 commit comments