mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-24 19:37:20 +00:00
Clean up dogfood fallout
This commit is contained in:
parent
70a41a9281
commit
07867fde59
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ impl<'tcx> LateLintPass<'tcx> for PanicUnimplemented {
|
|||
if let ExprKind::Block(ref block, _) = expr.kind;
|
||||
if let Some(ref ex) = block.expr;
|
||||
if let Some(params) = match_function_call(cx, ex, &paths::BEGIN_PANIC)
|
||||
.or(match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
|
||||
.or_else(|| match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
|
||||
then {
|
||||
let span = get_outer_span(expr);
|
||||
if is_expn_of(expr.span, "unimplemented").is_some() {
|
||||
|
|
Loading…
Add table
Reference in a new issue