Skip to content

Commit 5f4a8a6

Browse files
committed
Add support for mir::TerminatorKind::TailCall in clippy
1 parent 80a75d3 commit 5f4a8a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ fn check_terminator<'tcx>(
317317
target: _,
318318
unwind: _,
319319
fn_span: _,
320-
} => {
320+
}
321+
| TerminatorKind::TailCall { func, args, fn_span: _ } => {
321322
let fn_ty = func.ty(body, tcx);
322323
if let ty::FnDef(fn_def_id, _) = *fn_ty.kind() {
323324
if !is_const_fn(tcx, fn_def_id, msrv) {

0 commit comments

Comments
 (0)