granite-rust/library
bors 48f00110d0 Auto merge of #121571 - clarfonthey:unchecked-math-preconditions, r=saethlin
Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methods

(Old PR is haunted, opening a new one. See #117494 for previous discussion.)

This ensures that these preconditions are actually checked in debug mode, and hopefully should let people know if they messed up. I've also replaced the calls (I could find) in the code that use these intrinsics directly with those that use these methods, so that the asserts actually apply.

More discussions on people misusing these methods in the tracking issue: https://github.com/rust-lang/rust/issues/85122.
2024-05-25 18:07:32 +00:00
..
alloc Remove now outdated comment since we bumped stage0 2024-05-24 08:08:41 +02:00
backtrace@e151306182 Update backtrace submodule 2024-04-12 16:28:19 -07:00
core Auto merge of #121571 - clarfonthey:unchecked-math-preconditions, r=saethlin 2024-05-25 18:07:32 +00:00
panic_abort Add support for Arm64EC to the Standard Library 2024-04-15 16:05:16 -07:00
panic_unwind Replace libc::c_int with core::ffi::c_int 2024-04-14 07:11:51 +00:00
portable-simd Fix typos (taking into account review comments) 2024-05-18 18:12:18 +02:00
proc_macro Rollup merge of #124389 - CensoredUsername:master, r=petrochenkov 2024-05-23 20:09:08 +02:00
profiler_builtins Update cc crate to v1.0.97 2024-05-08 15:06:35 +00:00
rtstartup library: Fix warnings in rtstartup 2024-01-06 01:32:03 +03:00
rustc-std-workspace-alloc Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #125527 - programmerjake:patch-2, r=workingjubilee 2024-05-25 12:54:38 +02:00
stdarch@df3618d9f3 feat: update stdarch submodule for intrinsics on ARM 2024-05-15 15:38:58 -04:00
sysroot Add flag to sysroot 2024-05-11 14:31:55 +02:00
test Run rustfmt on files that need it. 2024-05-24 15:17:21 +10:00
unwind Fix unwinding on 32-bit watchOS ARM 2024-05-05 15:41:55 +02:00