Skip to content

Commit

Permalink
Add support for mir::TerminatorKind::TailCall in clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Mar 6, 2024
1 parent 538951b commit 487678d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ fn check_terminator<'tcx>(
target: _,
unwind: _,
fn_span: _,
} => {
}
| TerminatorKind::TailCall { func, args, fn_span: _ } => {
let fn_ty = func.ty(body, tcx);
if let ty::FnDef(fn_def_id, _) = *fn_ty.kind() {
if !is_const_fn(tcx, fn_def_id, msrv) {
Expand Down

0 comments on commit 487678d

Please sign in to comment.