Skip to content

Commit 6c0a9a5

Browse files
committed
Add support for mir::TerminatorKind::TailCall in clippy
1 parent fab2b6e commit 6c0a9a5

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
@@ -314,7 +314,8 @@ fn check_terminator<'tcx>(
314314
target: _,
315315
unwind: _,
316316
fn_span: _,
317-
} => {
317+
}
318+
| TerminatorKind::TailCall { func, args, fn_span: _ } => {
318319
let fn_ty = func.ty(body, tcx);
319320
if let ty::FnDef(fn_def_id, _) = *fn_ty.kind() {
320321
if !is_const_fn(tcx, fn_def_id, msrv) {

0 commit comments

Comments
 (0)