Repository navigation
Commit 8a9d46c
committed
fix: build with Rust 1.99, which deprecates the legacy f64 constants and fetch_update
Rust 1.99.0, released 2026-10-01, deprecates the legacy numeric module constants and
`Atomic*::fetch_update`. CI installs the latest stable toolchain, so `cargo clippy -- -D warnings`
in the rust-test job has failed on every pull request and merge queue run since.
- A test module in `numeric.rs` imported `core::f64`, so its `f64::NAN`, `f64::INFINITY` and the
other constants named the deprecated module constants. Without the import they are the
associated constants on `f64`.
- The four `fetch_update` calls in the memory pools keep it under `#[allow(deprecated)]`. Its
replacement, `try_update`, was stabilized in Rust 1.95, newer than the workspace `rust-version`
of 1.94.1 parent d5de7b9 commit 8a9d46c
3 files changed
Lines changed: 12 additions & 1 deletion
File tree
- native
- core/src/execution/memory_pools
- spark-expr/src/conversion_funcs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
118 | 127 | | |
119 | 128 | | |
120 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
1435 | | - | |
1436 | 1435 | | |
1437 | 1436 | | |
1438 | 1437 | | |
| |||
0 commit comments