mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
Add support for mir::TerminatorKind::TailCall
in clippy
This commit is contained in:
parent
244007566a
commit
791ff40337
1 changed files with 2 additions and 1 deletions
|
@ -330,7 +330,8 @@ fn check_terminator<'tcx>(
|
||||||
target: _,
|
target: _,
|
||||||
unwind: _,
|
unwind: _,
|
||||||
fn_span: _,
|
fn_span: _,
|
||||||
} => {
|
}
|
||||||
|
| TerminatorKind::TailCall { func, args, fn_span: _ } => {
|
||||||
let fn_ty = func.ty(body, tcx);
|
let fn_ty = func.ty(body, tcx);
|
||||||
if let ty::FnDef(fn_def_id, _) = *fn_ty.kind() {
|
if let ty::FnDef(fn_def_id, _) = *fn_ty.kind() {
|
||||||
if !is_const_fn(tcx, fn_def_id, msrv) {
|
if !is_const_fn(tcx, fn_def_id, msrv) {
|
||||||
|
|
Loading…
Reference in a new issue