]> git.lizzy.rs Git - rust.git/commit
Make `Vec::leak` a method instead of an associated function.
authorSimon Sapin <simon.sapin@exyr.org>
Tue, 21 Jul 2020 21:06:23 +0000 (23:06 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Wed, 29 Jul 2020 08:53:55 +0000 (10:53 +0200)
commitd8bcf75206e88e07cabd95b87418fe98c5fa2b95
tree33b8ab569d37c7faf64843d7bbc0069d43a24712
parent10c375700ce170fc57cb617754dc6d0631d3d573
Make `Vec::leak` a method instead of an associated function.

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.
library/alloc/src/vec.rs