rust/library/alloc
bors 5ef872f961 Auto merge of #74605 - rust-lang:vec-leak, r=Amanieu
Stabilize Vec::leak as a method

Closes https://github.com/rust-lang/rust/issues/62195

The signature is changed to a method rather than an associated function:

```diff
-pub fn leak<'a>(vec: Vec<T>) -> &'a mut [T]
+pub fn leak<'a>(self) -> &'a mut [T]
```

The reason for `Box::leak` not to be a method (`Deref` to an arbitrary `T` which might have its own, different `leak` method) does not apply.
2020-08-01 22:29:30 +00:00
..
benches
src Auto merge of #74605 - rust-lang:vec-leak, r=Amanieu 2020-08-01 22:29:30 +00:00
tests Add str::[r]split_once 2020-07-28 09:58:20 +02:00
Cargo.toml