Lines Matching refs:leak
1115 reason = "use `Box::leak(b).into()` or `Unique::from(Box::leak(b))` instead"
1123 // so all raw pointer methods have to go through `Box::leak`. Turning *that* to a raw pointer
1126 (Unique::from(Box::leak(b)), alloc)
1148 /// leak. If this is not acceptable, the reference should first be wrapped
1154 /// to call it as `Box::leak(b)` instead of `b.leak()`. This
1163 /// let static_ref: &'static mut usize = Box::leak(x);
1172 /// let static_ref = Box::leak(x);
1178 pub fn leak<'a>(b: Self) -> &'a mut T