about summary refs log tree commit diff
path: root/library/core/src/ptr/alignment.rs
AgeCommit message (Expand)AuthorLines
2025-09-01Constify conversion traitsltdk-4/+6
2025-07-30`AlignmentEnum` should just be `repr(usize)` nowScott McMurray-3/+5
2025-07-21Constify Try, From, TryFromEvgenii Zheltonozhskii-2/+4
2025-07-13update issue number for `const_trait_impl`Deadbeef-1/+1
2025-07-07Make `Default` const and add some `const Default` implsEsteban Küber-1/+2
2025-05-21Add some track_caller info to precondition panicsBen Kimock-0/+1
2025-03-06library: Use size_of from the prelude instead of importedThalia Archibald-4/+4
2025-01-15Less unsafe in `dangling`/`without_provenance`Scott McMurray-3/+9
2024-11-27update cfgsBoxy-7/+0
2024-10-25Re-do recursive const stability checksRalf Jung-7/+7
2024-09-26add missing FIXME(const-hack)Ralf Jung-1/+1
2024-09-18Auto merge of #129845 - scottmcm:redo-layout, r=Noratriebbors-0/+5
2024-09-17Take more advantage of the `isize::MAX` limit in `Layout`Scott McMurray-0/+5
2024-09-08remove pointless rustc_const_unstable on trait implsRalf Jung-2/+0
2024-08-23Enable Alignment::new_unchecked precondition checkBen Kimock-2/+0
2024-03-25Import the 2021 prelude in the core crateDaniel Paoliello-1/+0
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-2/+2
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-3/+6
2024-03-07Rust is a proper name: rust → RustRalf Jung-1/+1
2024-02-29Add proper cfgr0cky-9/+5
2024-02-22Use generic `NonZero` everywhere in `core`.Markus Reiter-8/+8
2024-02-19Convert debug_assert_nounwind to intrinsics::debug_assertionsBen Kimock-0/+1
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-1/+1
2024-02-15Use generic `NonZero` internally.Markus Reiter-2/+2
2023-11-25Convert many `assert_unsafe_precondition` to `debug_assert_nounwind`Gary Guo-8/+4
2023-11-18impl more traits for ptr::Alignment, add mask methodltdk-1/+44
2023-04-16rm const traits in libcoreDeadbeef-10/+6
2023-03-03Match unmatched backticks in library/est31-1/+1
2022-12-28Update bootstrap cfgPietro Albini-8/+4
2022-11-20Fix issue numberRune Tynan-1/+1
2022-11-20Update with derive_constRune Tynan-12/+11
2022-11-20Add stability for alignmentRune Tynan-0/+2
2022-11-20constify remaining layout methodsRune Tynan-5/+14
2022-10-26Print the precondition we violated, and visible through output captureBen Kimock-1/+6
2022-10-16Fix types in documentation for Alignment::as_usize and Alignmnet::as_nonzeroThayne McCombs-2/+2
2022-10-09From<Alignment> for usize & NonZeroUsizeScott McMurray-0/+16
2022-09-22Derive Eq/PartialEq instead of manually implementing itScott McMurray-15/+23
2022-09-21Add `rustc_allow_const_fn_unstable` annotations to pre-existing `Layout` methodsScott McMurray-1/+3
2022-09-20Add `ptr::Alignment` typeScott McMurray-0/+295