Skip to content

Commit 3937e47

Browse files
committed
Add a fixme to add mir validator checks for tail calls
1 parent 406bd6b commit 3937e47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_const_eval/src/transform/validate.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,10 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
10111011
),
10121012
);
10131013
}
1014+
1015+
if let TerminatorKind::TailCall { .. } = terminator.kind {
1016+
// FIXME(explicit_tail_calls): implement tail-call specific checks here (such as signature matching, forbidding closures, etc)
1017+
}
10141018
}
10151019
TerminatorKind::Assert { cond, target, unwind, .. } => {
10161020
let cond_ty = cond.ty(&self.body.local_decls, self.tcx);

0 commit comments

Comments
 (0)