Skip to content

Commit d08c39a

Browse files
committed
fix tidy
1 parent 798353f commit d08c39a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/ui/codegen/tail-call-become.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@ compile-flags: -C opt-level=0 -Cpanic=abort -C no-prepopulate-passes
2-
//@ needs-llvm-components: x86
1+
//@ compile-flags: -C opt-level=0 -Cpanic=abort -C no-prepopulate-passes
32

43
#![feature(explicit_tail_calls)]
54
#![crate_type = "lib"]

tests/ui/explicit-tail-calls/mutual-recursion.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ fn main() {
4747
assert_eq!(is_odd(10), false);
4848

4949
// Test with an extremely large number that would definitely overflow the stack
50-
// without tail call optimization - each call creates 2 stack frames (alternating between functions)
50+
// without tail call optimization, each call creates 2 stack frames
51+
// as it alternates between functions
5152
// so 100,000 would create 200,000 stack frames total
5253
assert_eq!(is_even(100_000), true);
5354
assert_eq!(is_odd(100_000), false);

tests/ui/explicit-tail-calls/runtime-deep-recursion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn countdown_no_tail(n: u32) -> u32 {
2020
}
2121

2222
// This test is specifically designed to verify tail call optimization
23-
// We use an extremely large recursion depth (500,000) that would
23+
// We use an extremely large recursion depth (500,000) that would
2424
// absolutely overflow the stack without tail call optimization
2525
fn main() {
2626
// Small test to verify correctness

0 commit comments

Comments
 (0)