File tree 1 file changed +6
-0
lines changed
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 {
295
295
296
296
Running our UI test should now produce output that contains the lint message.
297
297
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
+
298
303
[ check_fn ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/trait.EarlyLintPass.html#method.check_fn
299
304
[ 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
300
306
301
307
## Adding the lint logic
302
308
You can’t perform that action at this time.
0 commit comments