Repository: theseus-os/Theseus (language: rust)

Issue:
`rand_chacha` crate fails to build on debug mode
The `random` crate depends on `rand_chacha`, which apparently fails to build correctly in debug mode.

## Steps to reproduce
```
make run BUILD_MODE=debug
```
You'll see an LLVM error about split operands. 

Note that this doesn't happen in regular release builds, which is odd.

## Related
I fixed a similar LLVM error in the `crc32fast` crate here: https://github.com/srijs/rust-crc32fast/pull/22, which makes me think that this is related to how `rand_chacha` specific its cfg gates for enabling SSE instructions.




Discussion / hints:
cc rust-random/rand#1260 cryptocorrosion/cryptocorrosion#69
Thanks @tsoutsman, the follow-up issues look good. Appreciate you digging into that!

Fix patch:
diff --git a/Cargo.lock b/Cargo.lock
index ab2b7e698a..ad42bfd4ff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2362,9 +2362,9 @@ version = "0.2.1"
 
 [[package]]
 name = "ppv-lite86"
-version = "0.2.16"
+version = "0.2.17"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
+checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
 
 [[package]]
 name = "preemption"


Test patch: