mirror of https://github.com/rust-lang/rust.git
Add support for `mir::TerminatorKind::TailCall` in clippy
This commit is contained in:
parent
5f4caae11c
commit
30b18d7c36
|
@ -330,7 +330,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) {
|
||||
|
|
Loading…
Reference in New Issue