Uh oh!
There was an error while loading. Please reload this page.
Implement core::ptr::Unique on top of NonNull - #96010
Conversation
rust-highfive
commented
Apr 13, 2022
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
rust-highfive
commented
Apr 13, 2022
r? @thomcc (rust-highfive has picked a reviewer for you, use r? to override) |
This comment was marked as resolved.
This comment was marked as resolved.
core::ptr::Unique on top of NonNullcore::ptr::Unique on top of NonNulltmiasko
commented
Apr 13, 2022
You probably need to change the code generation by adding one additional rust/compiler/rustc_codegen_ssa/src/mir/place.rs Lines 450 to 454 in f38c5c8 rust/compiler/rustc_codegen_ssa/src/mir/place.rs Lines 465 to 469 in f38c5c8 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
eduardosm
commented
Apr 13, 2022
Thanks for the tip |
This comment was marked as resolved.
This comment was marked as resolved.
core::ptr::Unique on top of NonNullcore::ptr::Unique on top of NonNullthomcc
commented
Apr 14, 2022
Hmm, yeah, never really did understand what the deal with Unique was, so I'm gonna to punt this to someone else. Naïvely, it looks fine. r? rust-lang/libs |
m-ou-se
commented
Apr 14, 2022
@bors r+ |
bors
commented
Apr 14, 2022
📌 Commit a22a9a9 has been approved by |
… r=m-ou-se Implement `core::ptr::Unique` on top of `NonNull` Removes the use `rustc_layout_scalar_valid_range_start` and some `unsafe` blocks.
tmiasko
commented
Apr 14, 2022
eduardosm
commented
Apr 14, 2022
Can we run MSVC CI on this PR to test CDB without waiting for rollup? |
It's possible, but there's no bot command or something to do that. You'd have to temporarily modify |
core::ptr::Unique on top of NonNullcore::ptr::Unique on top of NonNull
This comment was marked as resolved.
This comment was marked as resolved.
core::ptr::Unique on top of NonNullcore::ptr::Unique on top of NonNulleduardosm
commented
Apr 14, 2022
MSVC tests have finally passed, reverted PR CI changes |
klensy
commented
Apr 14, 2022
You can squash commits a little, instead of having unrelated ones in history. |
eduardosm
commented
Apr 14, 2022
Done |
eduardosm
commented
Apr 15, 2022
@rustbot label -S-waiting-on-bors +S-waiting-on-review |
tmiasko
commented
Apr 16, 2022
@bors r=m-ou-se,tmiasko rollup=never |
bors
commented
Apr 16, 2022
📌 Commit 7ba0292 has been approved by |
bors
commented
Apr 17, 2022
bors
commented
Apr 17, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Apr 17, 2022
Finished benchmarking commit (ac8b118): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Footnotes |
pnkfelix
commented
Apr 21, 2022
@eduardosm or @m-ou-se , do either of you have time to look into the cause of this? I'm tempted to suggest we revert it, unless someone can present an argument for why we need it. |
pnkfelix
commented
Apr 21, 2022
nominating for attention from T-libs, in the hopes that someone can address my concerns above. |
Removes the use
rustc_layout_scalar_valid_range_startand someunsafeblocks.