We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffaadae commit 73b1ee1Copy full SHA for 73b1ee1
clippy_lints/src/methods/mod.rs
@@ -1686,6 +1686,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
1686
1687
fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx TraitItem<'_>) {
1688
if_chain! {
1689
+ if !in_external_macro(cx.tcx.sess, item.span);
1690
if item.ident.name == sym!(new);
1691
if let TraitItemKind::Fn(_, _) = item.kind;
1692
let ret_ty = return_ty(cx, item.hir_id);
0 commit comments