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.
2 parents 0fcb49e + 2b75141 commit 4d566b6Copy full SHA for 4d566b6
clippy_lints/src/returns.rs
@@ -208,6 +208,8 @@ impl Return {
208
if let ast::ExprKind::Path(_, ref path) = retexpr.node;
209
if match_path_ast(path, &[&*ident.name.as_str()]);
210
if !in_external_macro(cx.sess(), initexpr.span);
211
+ if !in_external_macro(cx.sess(), retexpr.span);
212
+ if !in_external_macro(cx.sess(), local.span);
213
then {
214
span_lint_and_then(
215
cx,
0 commit comments