We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mir::TerminatorKind::TailCall
1 parent b3455d2 commit 7ba9e99Copy full SHA for 7ba9e99
src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs
@@ -285,15 +285,16 @@ fn check_terminator<'tcx>(
285
Err((span, "const fn generators are unstable".into()))
286
},
287
288
- TerminatorKind::Call {
+ TerminatorKind::Call {
289
func,
290
args,
291
call_source: _,
292
destination: _,
293
target: _,
294
unwind: _,
295
fn_span: _,
296
- } => {
+ }
297
+ | TerminatorKind::TailCall { func, args, fn_span: _ } => {
298
let fn_ty = func.ty(body, tcx);
299
if let ty::FnDef(fn_def_id, _) = *fn_ty.kind() {
300
if !is_const_fn(tcx, fn_def_id, msrv) {
0 commit comments