diff options
| author | bors <bors@rust-lang.org> | 2020-08-01 22:29:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-01 22:29:30 +0000 |
| commit | 5ef872f9619ed78a349c1407ebac719a980209ee (patch) | |
| tree | 11b68590e743e747fb8757e484f95148ed03147d /src/librustc_codegen_llvm/builder.rs | |
| parent | 05762e3d6f5facafdd47efdf4203021fadf61bb1 (diff) | |
| parent | 7d759f539f363125511f1edd9ad30934367f409b (diff) | |
| download | rust-5ef872f9619ed78a349c1407ebac719a980209ee.tar.gz rust-5ef872f9619ed78a349c1407ebac719a980209ee.zip | |
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.
Diffstat (limited to 'src/librustc_codegen_llvm/builder.rs')
0 files changed, 0 insertions, 0 deletions
