Closed dancrossnyc closed 9 months ago
Testing on sn14.
This PR is the answer.
Testing on sn14 was successful; the draft/undraft thing was just me hitting the wrong thing. :-/
Ah, I think this is better. I've changed the code to use SyncUnsafeCell
; the static mut is no more; it is now just a static
.
(Note that this did involve adding another #![feature(sync_unsafe_cell)]
to the code, but that's an acceptable price to pay, I think.
Latest patchset is tested and works. Given that it eliminates the static mut
entirely, I think we should go with this.
Ok, with the introduction of
SyncUnafeCell
for the IDT, I think this is good to go. Eliza, do you have any other concerns here?Looks good to me! Sorry for having been the bearer of bad news about upstream Rust folks' opinions...
No, it's ok. I honestly think we need to engage with them on this issue, even if this particular case is (IMHO) rather neatly solved by SyncUnsafeCell
.
Clean up the "no static mut refs" code a tad, and update Rust and dependencies.