Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd 12 num::NonZero* types for primitive integers, deprecate core::nonzero #48265
Conversation
rust-highfive
assigned
aidanhs
Feb 16, 2018
This comment has been minimized.
This comment has been minimized.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aidanhs (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
rust-highfive
added
the
S-waiting-on-review
label
Feb 16, 2018
SimonSapin
referenced this pull request
Feb 16, 2018
Merged
RFC: Add std::num::NonZeroU32 and friends, deprecate core::nonzero #2307
SimonSapin
force-pushed the
SimonSapin:nonzero
branch
2 times, most recently
from
bb36499
to
fc8d2e6
Feb 16, 2018
This comment has been minimized.
This comment has been minimized.
|
r? @KodrAus |
rust-highfive
assigned
KodrAus
and unassigned
aidanhs
Feb 16, 2018
SimonSapin
force-pushed the
SimonSapin:nonzero
branch
3 times, most recently
from
c819a2e
to
593b332
Feb 16, 2018
kennytm
added
the
T-libs
label
Feb 16, 2018
SimonSapin
referenced this pull request
Feb 16, 2018
Closed
Tracking issue for `NonZero`/`Unique`/`Shared` stabilization #27730
kennytm
added
S-blocked
and removed
S-waiting-on-review
labels
Feb 16, 2018
This comment has been minimized.
This comment has been minimized.
|
Marking as blocked by rust-lang/rfcs#2307, the RFC has not been accepted yet. |
SimonSapin
force-pushed the
SimonSapin:nonzero
branch
from
cabc4f1
to
90a7a4b
Feb 16, 2018
This comment has been minimized.
This comment has been minimized.
|
|
pietroalbini
added
S-blocked
and removed
S-blocked
labels
Feb 26, 2018
SimonSapin
force-pushed the
SimonSapin:nonzero
branch
3 times, most recently
from
fe39656
to
a7ca6b2
Mar 8, 2018
SimonSapin
reviewed
Mar 9, 2018
| @@ -20,7 +20,7 @@ where | |||
|
|
|||
| // @has no_redundancy/struct.Outer.html | |||
| // @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]/*/code' "impl<T> Send for \ | |||
| // Outer<T> where T: Copy + Send" | |||
| // Outer<T> where T: Send + Copy" | |||
This comment has been minimized.
This comment has been minimized.
SimonSapin
Mar 9, 2018
Author
Contributor
The ptr::Shared removal makes this test fail unless I make this change. I have no idea why.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
kennytm
referenced this pull request
Mar 16, 2018
Merged
Implement Integer methods for Wrapping #48810
SimonSapin
referenced this pull request
Mar 17, 2018
Merged
replace `convert::Infallible` with `!` #49038
SimonSapin
referenced this pull request
Mar 18, 2018
Closed
Rustdoc: where bounds order in synthetic impls is not deterministic #49123
This comment has been minimized.
This comment has been minimized.
KodrAus
commented
Mar 18, 2018
|
I was just waiting for the FCP to finish :) Will take a look through shortly. |
KodrAus
reviewed
Mar 18, 2018
| @@ -62,14 +63,11 @@ impl_zeroable_for_integer_types! { | |||
| /// NULL or 0 that might allow certain optimizations. | |||
| #[lang = "non_zero"] | |||
| #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)] | |||
| pub struct NonZero<T: Zeroable>(T); | |||
| pub struct NonZero<T: Zeroable>(pub(crate) T); | |||
This comment has been minimized.
This comment has been minimized.
KodrAus
Mar 18, 2018
Is there a reason we need to make this pub(crate) instead of using the new_unchecked and get methods?
This comment has been minimized.
This comment has been minimized.
SimonSapin
Mar 18, 2018
Author
Contributor
This is in anticipation for later making this module private and reducing it to its bare minimum (the lang item) SimonSapin#1
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
KodrAus
approved these changes
Mar 20, 2018
KodrAus left a comment
|
This looks good to me! Thanks @SimonSapin |
This comment has been minimized.
This comment has been minimized.
KodrAus
commented
Mar 20, 2018
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
bors
added
S-waiting-on-bors
and removed
S-waiting-on-review
labels
Mar 20, 2018
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 21, 2018
This comment has been minimized.
This comment has been minimized.
|
|
bors
added
S-waiting-on-review
and removed
S-waiting-on-bors
labels
Mar 21, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors: retry
|
SimonSapin commentedFeb 16, 2018
•
edited
RFC: rust-lang/rfcs#2307
Tracking issue:
#27730#49137Fixes #27730