Skip to content

Commit 73b1ee1

Browse files
ThibsGebroto
andauthored
Update clippy_lints/src/methods/mod.rs
Co-authored-by: Eduardo Broto <[email protected]>
1 parent ffaadae commit 73b1ee1

File tree

1 file changed

+1
-0
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-0
lines changed

clippy_lints/src/methods/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
16861686

16871687
fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx TraitItem<'_>) {
16881688
if_chain! {
1689+
if !in_external_macro(cx.tcx.sess, item.span);
16891690
if item.ident.name == sym!(new);
16901691
if let TraitItemKind::Fn(_, _) = item.kind;
16911692
let ret_ty = return_ty(cx, item.hir_id);

0 commit comments

Comments
 (0)