Daniel Paoliello
|
d261647c93
|
Import the 2021 prelude in the core crate
|
2024-03-25 13:12:06 -07:00 |
|
Ralf Jung
|
987ef4c922
|
move assert_unsafe_preconditions to its own file
These macros and functions are not intrinsics, after all.
|
2024-03-23 18:44:17 +01:00 |
|
Ben Kimock
|
5a93a59fd5
|
Distinguish between library and lang UB in assert_unsafe_precondition
|
2024-03-08 18:53:58 -05:00 |
|
Ralf Jung
|
1a2bc1102d
|
Rust is a proper name: rust → Rust
|
2024-03-07 07:49:22 +01:00 |
|
r0cky
|
61fcdf6655
|
Add proper cfg
|
2024-02-29 09:25:28 +08:00 |
|
Markus Reiter
|
14ed426eec
|
Use generic NonZero everywhere in core.
|
2024-02-22 15:17:33 +01:00 |
|
Ben Kimock
|
581e171773
|
Convert debug_assert_nounwind to intrinsics::debug_assertions
|
2024-02-19 20:38:09 -05:00 |
|
Markus Reiter
|
a90cc05233
|
Replace NonZero::<_>::new with NonZero::new.
|
2024-02-15 08:09:42 +01:00 |
|
Markus Reiter
|
746a58d435
|
Use generic NonZero internally.
|
2024-02-15 08:09:42 +01:00 |
|
Gary Guo
|
97c1502066
|
Convert many assert_unsafe_precondition to debug_assert_nounwind
|
2023-11-25 23:58:51 +00:00 |
|
ltdk
|
114873dc19
|
impl more traits for ptr::Alignment, add mask method
|
2023-11-18 00:05:28 -05:00 |
|
Deadbeef
|
76dbe29104
|
rm const traits in libcore
|
2023-04-16 06:49:27 +00:00 |
|
est31
|
999405059c
|
Match unmatched backticks in library/
|
2023-03-03 03:03:29 +01:00 |
|
Pietro Albini
|
11191279b7
|
Update bootstrap cfg
|
2022-12-28 09:18:43 -05:00 |
|
Rune Tynan
|
a5fecc6905
|
Fix issue number
|
2022-11-20 15:01:21 -05:00 |
|
Rune Tynan
|
6f2dcac78b
|
Update with derive_const
|
2022-11-20 15:01:21 -05:00 |
|
Rune Tynan
|
414e84a2f7
|
Add stability for alignment
|
2022-11-20 15:01:21 -05:00 |
|
Rune Tynan
|
9f4b4e46a3
|
constify remaining layout methods
Remove bad impl for Eq
Update Cargo.lock and fix last ValidAlign
|
2022-11-20 15:01:21 -05:00 |
|
Ben Kimock
|
458aaa5a23
|
Print the precondition we violated, and visible through output capture
Co-authored-by: Ralf Jung <post@ralfj.de>
|
2022-10-26 22:09:17 -04:00 |
|
Thayne McCombs
|
63a7fdf61b
|
Fix types in documentation for Alignment::as_usize and Alignmnet::as_nonzero
|
2022-10-16 23:44:06 -06:00 |
|
Scott McMurray
|
0718aeceb3
|
From<Alignment> for usize & NonZeroUsize
|
2022-10-09 15:44:49 -07:00 |
|
Scott McMurray
|
c158b7b7d0
|
Derive Eq/PartialEq instead of manually implementing it
|
2022-09-22 11:50:51 -07:00 |
|
Scott McMurray
|
e2d7cdcf2b
|
Add rustc_allow_const_fn_unstable annotations to pre-existing Layout methods
|
2022-09-21 13:43:21 -07:00 |
|
Scott McMurray
|
585bcc6980
|
Add ptr::Alignment type
Essentially no new code here, just exposing the previously-`pub(crate)` `ValidAlign` type under the name from the ACP.
|
2022-09-20 14:20:21 -07:00 |
|