diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2019-05-11 20:40:05 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-05-11 21:39:02 -0700 |
| commit | 7eb8018554cc0b8e3438b995f70cdd2e30151526 (patch) | |
| tree | cfe438c894e3b02cae68f6a84136199ea5660823 /doc/adding_lints.md | |
| parent | 3710ec59962295336ab4aed100267b584dd7df7d (diff) | |
Rename in_macro to in_macro_or_desugar
Diffstat (limited to 'doc/adding_lints.md')
| -rw-r--r-- | doc/adding_lints.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/adding_lints.md b/doc/adding_lints.md index 5781ab7f999..a80ee9f5435 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -381,7 +381,7 @@ Here are some pointers to things you are likely going to need for every lint: is already in here (`implements_trait`, `match_path`, `snippet`, etc) * [Clippy diagnostics][diagnostics] * [The `if_chain` macro][if_chain] -* [`in_macro`][in_macro] and [`in_external_macro`][in_external_macro] +* [`in_macro_or_desugar`][in_macro_or_desugar] and [`in_external_macro`][in_external_macro] * [`Span`][span] * [`Applicability`][applicability] * [The rustc guide][rustc_guide] explains a lot of internal compiler concepts @@ -421,7 +421,7 @@ don't hesitate to ask on Discord, IRC or in the issue/PR. [if_chain]: https://docs.rs/if_chain/0.1.2/if_chain/ [ty]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/sty/index.html [ast]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ast/index.html -[in_macro]: https://github.com/rust-lang/rust-clippy/blob/d0717d1f9531a03d154aaeb0cad94c243915a146/clippy_lints/src/utils/mod.rs#L94 +[in_macro_or_desugar]: https://github.com/rust-lang/rust-clippy/blob/d0717d1f9531a03d154aaeb0cad94c243915a146/clippy_lints/src/utils/mod.rs#L94 [in_external_macro]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/lint/fn.in_external_macro.html [play]: https://play.rust-lang.org [author_example]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f093b986e80ad62f3b67a1f24f5e66e2 |
