Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate all associated items on the NonZero integer types into a single impl block per type #118665

Merged
merged 18 commits into from
Jan 19, 2024
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
56df3bb
Move nonzero_integers macro call to bottom of module
dtolnay Dec 6, 2023
54cb822
Define only a single NonZero type per macro call
dtolnay Dec 6, 2023
9196d2a
Unindent nonzero_integer macro body
dtolnay Dec 6, 2023
a6152cd
Format nonzero_integer macro calls same way we do the primitive int i…
dtolnay Dec 6, 2023
3de0af1
Move 'impl FromStr for NonZero' into nonzero_integer macro
dtolnay Dec 6, 2023
81e1a7c
Move impl Div and Rem into nonzero_integer macro
dtolnay Dec 6, 2023
a78d9a6
Unindent nonzero_integer_impl_div_rem macro body
dtolnay Dec 6, 2023
f846ed5
Move leading_zeros and trailing_zeros methods into nonzero_integer macro
dtolnay Dec 6, 2023
757ed25
Move Neg impl into the macro that generates Div and Rem
dtolnay Dec 6, 2023
4291b3f
Move signedness dependent methods into the omnibus impl block
dtolnay Dec 6, 2023
b21b9cc
Unindent nonzero_integer_signedness_dependent_methods macro body
dtolnay Dec 6, 2023
c6d776e
Work around rustfmt doc attribute indentation bug
dtolnay Dec 6, 2023
63256af
Move nonzero_unsigned_signed_operations methods into the omnibus impl…
dtolnay Dec 6, 2023
4419136
Move is_power_of_two into unsigned part of signedness_dependent_methods
dtolnay Dec 6, 2023
7f7c5af
Move unsigned MIN and MAX into signedness_dependent_methods
dtolnay Dec 6, 2023
66cda3b
Move signed MIN and MAX into signedness_dependent_methods
dtolnay Dec 6, 2023
c537132
Move BITS into omnibus impl block
dtolnay Dec 6, 2023
cdee1fe
Unbreak tidy's feature parser
dtolnay Dec 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading