Commit 563c441
committed
fix(asynch): replace runtime panic with compile_error for async-std-rt deprecation
async-std has been discontinued (RUSTSEC-2025-0052). Using panic!() inside a
#[cfg(feature = "async-std-rt")] block caused clippy to report an unreachable
statement on the subsequent futures-rt block when --all-features was used, because
panic!() is a diverging expression.
Replace the runtime panic with a module-level compile_error!() so:
- Users get a clear compile-time message instead of a runtime panic
- No unreachable-code lint is triggered (compile_error! is at module level)
- The CI clippy step now uses an explicit feature list excluding async-std-rt
(--all-features would always fail since compile_error! fires unconditionally)1 parent 60fea58 commit 563c441
2 files changed
+13
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
14 | 24 | | |
15 | 25 | | |
16 | 26 | | |
| |||
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
| |||
0 commit comments