summary refs log tree commit diff
path: root/library/core/src/num/nonzero.rs
AgeCommit message (Expand)AuthorLines
2025-01-07update version placeholdersPietro Albini-2/+2
2024-12-04Rollup merge of #133651 - scottmcm:nonnull-nonzero-no-field-projection, r=oli...Matthias Krüger-6/+28
2024-12-03Update `NonZero` and `NonNull` to not field-project (per MCP807)Scott McMurray-6/+28
2024-12-02Auto merge of #133728 - jhpratt:rollup-k1i60pg, r=jhprattbors-1/+0
2024-12-01Rollup merge of #131784 - Urgau:stabilize-midpoint, r=dtolnayJacob Pratt-3/+2
2024-12-01Stabilize unsigned `num_midpoint` featureUrgau-3/+2
2024-11-30get rid of a bunch of unnecessary rustc_const_unstableRalf Jung-1/+0
2024-11-27replace placeholder versionBoxy-4/+4
2024-11-12Add tracking issue number to unsigned_nonzero_div_ceil featureAsger Hautop Drewsen-1/+1
2024-11-05Implement div_ceil for NonZero<unsigned>Asger Hautop Drewsen-0/+29
2024-11-03Rollup merge of #132563 - frectonz:master, r=AmanieuJubilee-1/+9
2024-11-03Modify `NonZero` documentation to reference the underlying integer typefrectonz-1/+9
2024-11-03Rollup merge of #131377 - rick-de-water:nonzero-exp, r=dtolnayMatthias Krüger-16/+30
2024-11-02get rid of a whole bunch of unnecessary rustc_const_unstable attributesRalf Jung-1/+0
2024-11-01remove some unnecessary rustc_allow_const_fn_unstableRalf Jung-1/+0
2024-10-28Rollup merge of #131391 - ChaiTRex:isqrt, r=scottmcm,tgross35Matthias Krüger-3/+2
2024-10-25library: consistently use American spelling for 'behavior'Ralf Jung-8/+8
2024-10-08Stabilize `isqrt` featureChai T. Rex-3/+2
2024-10-08Add LowerExp and UpperExp implementationsrickdewater-16/+30
2024-08-31Improve documentation for <integer>::from_str_radixKappa322-10/+0
2024-08-28Speed up `checked_isqrt` and `isqrt` methodsChai T. Rex-25/+8
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+2
2024-07-27bitwise and bytewise methods on `NonZero`Peter Jaszkowiak-3/+430
2024-07-19improve safety commentivan-shrimp-1/+1
2024-07-19add `NonZero<uN>::isqrt`ivan-shrimp-6/+54
2024-06-21Remove `feature(effects)` from the standard libraryDeadbeef-4/+2
2024-06-13Fix wording in {checked_}next_power_of_twoChristiaan Biesterbosch-1/+1
2024-06-09fix `NonZero` doctest inconsistenciesivan-shrimp-10/+32
2024-05-08Use generic `NonZero` in examples.Markus Reiter-183/+181
2024-05-01Step bootstrap cfgsMark Rousskov-8/+2
2024-05-01Replace version placeholders for 1.79Mark Rousskov-3/+3
2024-04-23Rollup merge of #124003 - WaffleLapkin:dellvmization, r=scottmcm,RalfJung,antoyoMatthias Krüger-2/+12
2024-04-22Stabilize generic `NonZero`.Markus Reiter-5/+5
2024-04-16Change intrinsic types to use `u32` instead of `T` to match stable reexportsMaybe Waffle-2/+12
2024-03-30Make {integer}::from_str_radix constantGeorge Bateman-2/+1
2024-03-27`num::NonZero::get` can be 1 transmute instead of 3Scott McMurray-12/+14
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-2/+3
2024-03-17chore(121952): echo comments on the `*_assign` methodsPetr Portnov-0/+3
2024-03-17chore(121952): remove redundant commentsPetr Portnov-3/+0
2024-03-17feat: implement `{Div,Rem}Assign<NonZero<X>>` on `X`Petr Portnov-1/+20
2024-03-14Hide implementation details for `NonZero` auto traits.Markus Reiter-1/+22
2024-03-10Fix lint.Markus Reiter-0/+1
2024-03-10Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attribute to i...Markus Reiter-51/+76
2024-03-09NonZero::from_mut_unchecked is library UBBen Kimock-1/+1
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-4/+6
2024-03-01Make `ZeroablePrimitive` trait unsafe.Markus Reiter-2/+6
2024-02-22Use generic `NonZero` everywhere in `core`.Markus Reiter-9/+7
2024-02-17Implement `NonZero` traits generically.Markus Reiter-179/+211
2024-02-17Auto merge of #120563 - reitermarkus:generic-nonzero-get, r=dtolnaybors-20/+21
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-1/+1