Files
rust/src/test/ui
bors 21b4a9cfdc Auto merge of #92889 - tmiasko:unbounded-recursion, r=ecstatic-morse
Ignore unwinding edges when checking for unconditional recursion

The unconditional recursion lint determines if all execution paths
eventually lead to a self-recursive call.

The implementation always follows unwinding edges which limits its
practical utility. For example, it would not lint function `f` because a
call to `g` might unwind. It also wouldn't lint function `h` because an
overflow check preceding the self-recursive call might unwind:

```rust
pub fn f() {
    g();
    f();
}

pub fn g() { /* ... */ }

pub fn h(a: usize) {
  h(a + 1);
}
```

To avoid the issue, assume that terminators that might continue
execution along non-unwinding edges do so.

Fixes #78474.
2022-01-27 06:21:53 +00:00
..
2021-10-15 02:36:58 -05:00
2022-01-21 17:38:21 +01:00
2021-12-14 13:32:42 +01:00
2021-12-14 01:19:10 +03:00
2021-08-11 09:46:24 +00:00
2021-10-15 02:36:58 -05:00
2022-01-23 17:05:48 -05:00
2021-12-14 22:38:51 -05:00
2021-10-15 02:36:58 -05:00
2021-10-15 02:36:58 -05:00
2021-12-11 02:32:15 +00:00
2021-07-18 07:55:57 -07:00
2021-12-04 23:13:58 +01:00
2021-12-04 23:13:58 +01:00
2022-01-18 19:38:17 -03:00
2021-10-15 02:36:58 -05:00
2021-11-21 08:15:21 -06:00
2022-01-05 15:22:22 -08:00
2021-12-10 19:21:25 +00:00
2021-12-11 02:32:15 +00:00
2021-10-15 02:36:58 -05:00
2021-12-01 15:56:59 +00:00
2021-08-11 09:46:24 +00:00
2021-12-12 11:20:03 +00:00
2021-10-15 02:36:58 -05:00
2021-12-10 00:40:41 +01:00
2022-01-18 19:38:17 -03:00
2022-01-18 19:38:17 -03:00
2021-08-11 09:46:24 +00:00
2021-10-15 02:36:58 -05:00
2021-12-01 13:50:13 -08:00
2021-12-28 19:43:36 -06:00
2021-12-20 10:39:02 +08:00
2021-11-24 21:57:18 +01:00
2022-01-04 01:45:42 +00:00
2022-01-12 23:41:28 +01:00
2022-01-18 16:38:06 -08:00
2021-12-01 02:05:17 +00:00
2022-01-18 16:38:06 -08:00
2022-01-18 15:22:35 +01:00
2021-12-11 02:32:15 +00:00
2021-09-02 19:08:59 +02:00
2021-12-10 03:08:25 +00:00
2021-12-25 01:33:13 +08:00
2021-10-15 02:36:58 -05:00
2021-12-12 21:11:15 +00:00
2021-10-15 02:36:58 -05:00
2021-10-15 02:36:58 -05:00
2021-12-02 16:12:25 -08:00
2021-10-15 02:36:58 -05:00