Conversation
This comment has been minimized.
This comment has been minimized.
c428102 to
5bd5888
Compare
This comment has been minimized.
This comment has been minimized.
| #[stable(feature = "manually_drop", since = "1.20.0")] | ||
| impl<T: ?Sized + PartialEq> PartialEq for ManuallyDrop<T> { | ||
| fn eq(&self, other: &Self) -> bool { | ||
| self.value.as_ref().eq(other.value.as_ref()) | ||
| } | ||
| } |
There was a problem hiding this comment.
You also need to implement StructuralPartialEq, since ManuallyDrop in a const can currently be used in patterns on stable.
|
I don't know how much this is still an experiment, but if you're looking for more coverage, you might want to replace the rust/library/std/src/thread/lifecycle.rs Lines 61 to 82 in 864339a |
This comment has been minimized.
This comment has been minimized.
1648a31 to
82d6d20
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1b721b4 to
5bfe6e8
Compare
This comment has been minimized.
This comment has been minimized.
5bfe6e8 to
7f5f1b0
Compare
This comment has been minimized.
This comment has been minimized.
ac4154d to
259187e
Compare
This comment has been minimized.
This comment has been minimized.
96e0970 to
85e200f
Compare
This comment has been minimized.
This comment has been minimized.
85e200f to
c05b9a1
Compare
This comment has been minimized.
This comment has been minimized.
…m, r=jdonszelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
…m, r=jdonszelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
…m, r=jdonszelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
…m, r=jdonszelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
ed7011f to
97cda84
Compare
This comment has been minimized.
This comment has been minimized.
…szelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang/rust#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
|
☔ The latest upstream changes (presumably #150334) made this pull request unmergeable. Please resolve the merge conflicts. |
9f19633 to
01d80b9
Compare
This comment has been minimized.
This comment has been minimized.
…szelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang/rust#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
…szelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang/rust#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
…szelmann Simplify how inline asm handles `MaybeUninit` This is just better, but this is also allows it to handle changes from rust-lang/rust#149614 (i.e. `ManuallyDrop` containing `MaybeDangle`).
This comment has been minimized.
This comment has been minimized.
Make `size`/`align` always correct rather than conditionally on the `safe` field. This makes it less error prone and easier to work with for `MaybeDangling` / potential future pointer kinds like `Aligned<_>`.
Instead of defaulting to `None` it now defaults to `Align::ONE` i.e. no alignment restriction. Codegen test changes are due to us now skipping `align 1` annotations (they are useless; not skipping them makes all the raw pointers gain an `align 1` annotation which doesn't seem any good)
01d80b9 to
0e28e56
Compare
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
☔ The latest upstream changes (presumably #154123) made this pull request unmergeable. Please resolve the merge conflicts. |
cc #118166