We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a60a3 commit 1191db1Copy full SHA for 1191db1
components/script/dom/bindings/root.rs
@@ -383,7 +383,7 @@ where
383
#[allow(unrooted_must_root)]
384
pub unsafe fn from_box(value: Box<T>) -> Self {
385
Self {
386
- ptr: Box::into_raw_non_null(value),
+ ptr: Box::leak(value).into(),
387
}
388
389
components/script/lib.rs
@@ -2,7 +2,6 @@
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5
-#![feature(box_into_raw_non_null)]
6
#![feature(const_fn)]
7
#![feature(const_transmute)]
8
#![feature(core_intrinsics)]
0 commit comments