mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Clean up dogfood fallout
This commit is contained in:
@@ -97,7 +97,7 @@ fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user