Commit 5701b1d
committed
runtime-rs: Allow unused_unsafe around CPUID for mixed rustc versions
std::arch x86_64 CPUID helpers are still unsafe fn on older rustc; rustc
1.94+ treats them as safe and reports redundant unsafe as errors under
-D warnings. Keep explicit unsafe blocks and add targeted
#[allow(unused_unsafe)] with TODOs until all supported toolchains match
(see rust-lang/stdarch#1935; same pattern as firecracker in
JamesC1305/firecracker@ceb25ce).
Fixes: kata-containers#12835
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
Made-with: Cursor1 parent bd48de5 commit 5701b1d
3 files changed
Lines changed: 11 additions & 1 deletion
File tree
- src
- dragonball/dbs_arch/src/x86_64/cpuid
- libs/kata-sys-util/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| 315 | + | |
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
| |||
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
141 | | - | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
0 commit comments