index
:
rust
this commit
auto
automation/bors/try
automation/bors/try-merge
beta
cargo_update
lcnr/rustc-dev-guide
master
perf-tmp
stable
try
try-perf
https://github.com/rust-lang/rust
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
library
/
core
/
src
/
num
/
nonzero.rs
Age
Commit message (
Expand
)
Author
Lines
2024-03-09
NonZero::from_mut_unchecked is library UB
Ben Kimock
-1
/
+1
2024-03-08
Distinguish between library and lang UB in assert_unsafe_precondition
Ben Kimock
-4
/
+6
2024-03-01
Make `ZeroablePrimitive` trait unsafe.
Markus Reiter
-2
/
+6
2024-02-22
Use generic `NonZero` everywhere in `core`.
Markus Reiter
-9
/
+7
2024-02-17
Implement `NonZero` traits generically.
Markus Reiter
-179
/
+211
2024-02-17
Auto merge of #120563 - reitermarkus:generic-nonzero-get, r=dtolnay
bors
-20
/
+21
2024-02-15
Replace `NonZero::<_>::new` with `NonZero::new`.
Markus Reiter
-1
/
+1
2024-02-15
Use generic `NonZero` internally.
Markus Reiter
-5
/
+5
2024-02-09
Auto merge of #120676 - Mark-Simulacrum:bootstrap-bump, r=clubby789
bors
-6
/
+0
2024-02-08
Make `NonZero::get` generic.
Markus Reiter
-20
/
+21
2024-02-08
Use `transmute_unchecked` in `NonZero::new`.
Markus Reiter
-3
/
+1
2024-02-08
Step all bootstrap cfgs forward
Mark Rousskov
-6
/
+0
2024-02-07
Replace `transmute_copy` with `ptr::read`.
Markus Reiter
-1
/
+2
2024-02-07
Don't use `assert_unsafe_precondition` twice.
Markus Reiter
-12
/
+10
2024-02-07
Make `NonZero` constructors generic.
Markus Reiter
-71
/
+84
2024-02-07
Simplify `impl_zeroable_primitive` macro.
Markus Reiter
-13
/
+13
2024-01-27
Switch `NonZero` alias direction.
Markus Reiter
-18
/
+32
2024-01-24
Rollup merge of #118326 - WaffleLapkin:nz_count_ones, r=scottmcm
León Orell Valerian Liehr
-0
/
+37
2024-01-24
Add `NonZero*::count_ones`
Maybe Waffle
-0
/
+37
2024-01-23
Auto merge of #120283 - fmease:rollup-rk0f6r5, r=fmease
bors
-8
/
+101
2024-01-22
Use `Self` in `NonZero*` implementations.
Markus Reiter
-43
/
+48
2024-01-21
Manually implement derived `NonZero` traits.
Markus Reiter
-8
/
+101
2024-01-19
Assign tracking issue number for feature(nonzero_from_mut)
SOFe
-2
/
+2
2024-01-19
Added assert_unsafe_precondition! check for NonZeroXxx::from_mut_unchecked
SOFe
-13
/
+20
2024-01-19
Added NonZeroXxx::from_mut(_unchecked)?
SOFe
-0
/
+26
2024-01-19
Rollup merge of #118665 - dtolnay:signedness, r=Nilstrieb
Matthias Krüger
-1265
/
+1211
2024-01-15
Add private `NonZero<T>` type alias.
Markus Reiter
-0
/
+63
2024-01-14
Unbreak tidy's feature parser
David Tolnay
-52
/
+31
2024-01-14
Move BITS into omnibus impl block
David Tolnay
-37
/
+14
2024-01-14
Move signed MIN and MAX into signedness_dependent_methods
David Tolnay
-52
/
+35
2024-01-14
Move unsigned MIN and MAX into signedness_dependent_methods
David Tolnay
-43
/
+26
2024-01-14
Move is_power_of_two into unsigned part of signedness_dependent_methods
David Tolnay
-40
/
+28
2024-01-14
Move nonzero_unsigned_signed_operations methods into the omnibus impl block
David Tolnay
-225
/
+201
2024-01-14
Work around rustfmt doc attribute indentation bug
David Tolnay
-0
/
+1
2024-01-14
Unindent nonzero_integer_signedness_dependent_methods macro body
David Tolnay
-589
/
+589
2024-01-14
Move signedness dependent methods into the omnibus impl block
David Tolnay
-35
/
+30
2024-01-14
Move Neg impl into the macro that generates Div and Rem
David Tolnay
-20
/
+20
2024-01-14
Move leading_zeros and trailing_zeros methods into nonzero_integer macro
David Tolnay
-71
/
+75
2024-01-14
Unindent nonzero_integer_impl_div_rem macro body
David Tolnay
-21
/
+21
2024-01-14
Move impl Div and Rem into nonzero_integer macro
David Tolnay
-14
/
+9
2024-01-14
Move 'impl FromStr for NonZero' into nonzero_integer macro
David Tolnay
-9
/
+2
2024-01-14
Format nonzero_integer macro calls same way we do the primitive int impls
David Tolnay
-20
/
+59
2024-01-14
Unindent nonzero_integer macro body
David Tolnay
-139
/
+139
2024-01-14
Define only a single NonZero type per macro call
David Tolnay
-6
/
+39
2024-01-14
Move nonzero_integers macro call to bottom of module
David Tolnay
-15
/
+15
2024-01-06
Add assume into `NonZeroIntX::get`
AngelicosPhosphoros
-4
/
+18
2023-11-28
Fix comments for unsigned non-zero `checked_add`, `saturating_add`
Zalathar
-2
/
+2
2023-11-26
Improve some comments for non-zero ops
Maybe Waffle
-14
/
+44
2023-11-25
Convert many `assert_unsafe_precondition` to `debug_assert_nounwind`
Gary Guo
-4
/
+4
2023-08-15
Add alignment to the NPO guarantee
Scott McMurray
-0
/
+14
[next]