@@ -275,7 +275,7 @@ When declaring a new lint by hand and `cargo dev update_lints` is used, the lint
275275pass may have to be registered manually in the ` register_plugins ` function in
276276` clippy_lints/src/lib.rs ` :
277277
278- ``` rust
278+ ``` rust,ignore
279279store.register_early_pass(|| Box::new(foo_functions::FooFunctions));
280280```
281281
@@ -301,7 +301,7 @@ either [`EarlyLintPass`][early_lint_pass] or [`LateLintPass`][late_lint_pass].
301301
302302In short, the ` LateLintPass ` has access to type information while the
303303` EarlyLintPass ` doesn't. If you don't need access to type information, use the
304- ` EarlyLintPass ` . The ` EarlyLintPass ` is also faster. However linting speed
304+ ` EarlyLintPass ` . The ` EarlyLintPass ` is also faster. However, linting speed
305305hasn't really been a concern with Clippy so far.
306306
307307Since we don't need type information for checking the function name, we used
@@ -318,7 +318,7 @@ implementation of the lint logic.
318318
319319Let's start by implementing the ` EarlyLintPass ` for our ` FooFunctions ` :
320320
321- ``` rust
321+ ``` rust,ignore
322322impl EarlyLintPass for FooFunctions {
323323 fn check_fn(&mut self, cx: &EarlyContext<'_>, fn_kind: FnKind<'_>, span: Span, _: NodeId) {
324324 // TODO: Emit lint here
@@ -337,10 +337,10 @@ variety of lint emission functions. They can all be found in
337337[ ` clippy_utils/src/diagnostics.rs ` ] [ diagnostics ] .
338338
339339` span_lint_and_help ` seems most appropriate in this case. It allows us to
340- provide an extra help message and we can't really suggest a better name
340+ provide an extra help message, and we can't really suggest a better name
341341automatically. This is how it looks:
342342
343- ``` rust
343+ ``` rust,ignore
344344impl EarlyLintPass for FooFunctions {
345345 fn check_fn(&mut self, cx: &EarlyContext<'_>, fn_kind: FnKind<'_>, span: Span, _: NodeId) {
346346 span_lint_and_help(
@@ -479,7 +479,7 @@ the value from `clippy.toml`. This can be accounted for using the
479479` extract_msrv_attr!(LintContext) ` macro and passing
480480` LateContext ` /` EarlyContext ` .
481481
482- ``` rust
482+ ``` rust,ignore
483483impl<'tcx> LateLintPass<'tcx> for ManualStrip {
484484 fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
485485 ...
@@ -493,7 +493,7 @@ the lint's test file, `tests/ui/manual_strip.rs` in this example. It should
493493have a case for the version below the MSRV and one with the same contents but
494494for the MSRV version itself.
495495
496- ``` rust
496+ ``` rust,ignore
497497...
498498
499499#[clippy::msrv = "1.44"]
@@ -524,7 +524,7 @@ define_Conf! {
524524
525525If you have trouble implementing your lint, there is also the internal ` author `
526526lint to generate Clippy code that detects the offending pattern. It does not
527- work for all of the Rust syntax, but can give a good starting point.
527+ work for all the Rust syntax, but can give a good starting point.
528528
529529The quickest way to use it, is the [ Rust playground:
530530play.rust-lang.org] [ author_example ] . Put the code you want to lint into the
@@ -617,7 +617,7 @@ output in the `stdout` part.
617617
618618## PR Checklist
619619
620- Before submitting your PR make sure you followed all of the basic requirements:
620+ Before submitting your PR make sure you followed all the basic requirements:
621621
622622<!-- Sync this with `.github/PULL_REQUEST_TEMPLATE` -->
623623
@@ -637,7 +637,7 @@ for some users. Adding a configuration is done in the following steps:
637637
6386381 . Adding a new configuration entry to [ ` clippy_lints::utils::conf ` ] like this:
639639
640- ``` rust
640+ ``` rust,ignore
641641 /// Lint: LINT_NAME.
642642 ///
643643 /// <The configuration field doc comment>
@@ -690,7 +690,7 @@ for some users. Adding a configuration is done in the following steps:
690690 configuration value is now cloned or copied into a local value that is then
691691 passed to the impl struct like this :
692692
693- ```rust
693+ ```rust , ignore
694694 // Default generated registration:
695695 store . register_* _pass (|| box module :: StructName );
696696
0 commit comments