Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 39aed9b2fd02d2b440c246e9ea48d98670149891
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5142171798ee60214b7442ad809d14d736c97f3e
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/alloc/src/sync.rs
2 changes: 1 addition & 1 deletion library/alloc/src/sync.rs
Original file line number Diff line number Diff line change
@@ -4115,7 +4115,7 @@ impl<T: ?Sized, A: Allocator> UniqueArc<T, A> {
/// references.
#[unstable(feature = "unique_rc_arc", issue = "112566")]
pub fn into_arc(this: Self) -> Arc<T, A> {
let mut this = ManuallyDrop::new(this);
let this = ManuallyDrop::new(this);

// Move the allocator out.
// SAFETY: `this.alloc` will not be accessed again, nor dropped because it is in