Skip to content

Commit 487678d

Browse files
committed
Add support for mir::TerminatorKind::TailCall in clippy
1 parent 538951b commit 487678d

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

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

0 commit comments

Comments
 (0)