Skip to content

Commit 1191db1

Browse files
SimonSapinnosark
authored andcommitted
Remove use of soon-to-be-deprecated unstable feature
rust-lang/rust#47336 (comment)
1 parent 72a60a3 commit 1191db1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

components/script/dom/bindings/root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ where
383383
#[allow(unrooted_must_root)]
384384
pub unsafe fn from_box(value: Box<T>) -> Self {
385385
Self {
386-
ptr: Box::into_raw_non_null(value),
386+
ptr: Box::leak(value).into(),
387387
}
388388
}
389389
}

components/script/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
44

5-
#![feature(box_into_raw_non_null)]
65
#![feature(const_fn)]
76
#![feature(const_transmute)]
87
#![feature(core_intrinsics)]

0 commit comments

Comments
 (0)