@@ -67,9 +67,9 @@ and resolved paths.
6767
6868[ ` T-AST ` ] issues will generally need you to match against a predefined syntax structure.
6969To figure out how this syntax structure is encoded in the AST, it is recommended to run
70- ` rustc -Z ast-json ` on an example of the structure and compare with the [ nodes in the AST docs] .
70+ ` rustc -Z unpretty= ast-tree ` on an example of the structure and compare with the [ nodes in the AST docs] .
7171Usually the lint will end up to be a nested series of matches and ifs, [ like so] [ deep-nesting ] .
72- But we can make it nest-less by using [ if_chain ] macro , [ like this] [ nest-less ] .
72+ But we can make it nest-less by using [ let chains ] , [ like this] [ nest-less ] .
7373
7474[ ` E-medium ` ] issues are generally pretty easy too, though it's recommended you work on an [ ` good-first-issue ` ]
7575first. Sometimes they are only somewhat involved code wise, but not difficult per-se.
@@ -87,9 +87,9 @@ an AST expression). `match_def_path()` in Clippy's `utils` module can also be us
8787[ `E-medium` ] : https://github.com/rust-lang/rust-clippy/labels/E-medium
8888[ `ty` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty
8989[ nodes in the AST docs ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/ast/
90- [ deep-nesting ] : https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030 /clippy_lints/src/mem_forget.rs#L29-L43
91- [ if_chain ] : https://docs.rs/if_chain/*/if_chain
92- [ nest-less ] : https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030 /clippy_lints/src/bit_mask.rs#L124-L150
90+ [ deep-nesting ] : https://github.com/rust-lang/rust-clippy/blob/5e4f0922911536f80d9591180fa604229ac13939 /clippy_lints/src/mem_forget.rs#L31-L45
91+ [ let chains ] : https://github.com/rust-lang/rust/pull/94927
92+ [ nest-less ] : https://github.com/rust-lang/rust-clippy/blob/5e4f0922911536f80d9591180fa604229ac13939 /clippy_lints/src/bit_mask.rs#L133-L159
9393
9494## Writing code
9595
0 commit comments