diff options
| author | Thibaud <ThibsG@users.noreply.github.com> | 2020-08-28 09:33:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-28 09:33:05 +0200 |
| commit | 73b1ee1a614aaad7dd43958280ff4a444c8b737e (patch) | |
| tree | ccd5562b4471f3c6f7723ca7b0654debf8f0c08c | |
| parent | ffaadae8e48699f115eafd2853c252f546a69a28 (diff) | |
| download | rust-73b1ee1a614aaad7dd43958280ff4a444c8b737e.tar.gz rust-73b1ee1a614aaad7dd43958280ff4a444c8b737e.zip | |
Update clippy_lints/src/methods/mod.rs
Co-authored-by: Eduardo Broto <ebroto@tutanota.com>
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 63e0c183113..9996df69470 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -1686,6 +1686,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods { fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx TraitItem<'_>) { if_chain! { + if !in_external_macro(cx.tcx.sess, item.span); if item.ident.name == sym!(new); if let TraitItemKind::Fn(_, _) = item.kind; let ret_ty = return_ty(cx, item.hir_id); |
