Skip to content

Commit 791ff40

Browse files
committed
Add support for mir::TerminatorKind::TailCall in clippy
1 parent 2440075 commit 791ff40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ fn check_terminator<'tcx>(
330330
target: _,
331331
unwind: _,
332332
fn_span: _,
333-
} => {
333+
}
334+
| TerminatorKind::TailCall { func, args, fn_span: _ } => {
334335
let fn_ty = func.ty(body, tcx);
335336
if let ty::FnDef(fn_def_id, _) = *fn_ty.kind() {
336337
if !is_const_fn(tcx, fn_def_id, msrv) {

0 commit comments

Comments
 (0)