Rollup merge of #77709 - pickfire:patch-1, r=jyn514

Link Vec leak doc to Box
This commit is contained in:
Yuki Okushi 2020-10-11 03:19:09 +09:00 committed by GitHub
commit 45e35745d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1476,7 +1476,8 @@ impl<T> Vec<T> {
/// `'a`. If the type has only static references, or none at all, then this
/// may be chosen to be `'static`.
///
/// This function is similar to the `leak` function on `Box`.
/// This function is similar to the [`leak`][Box::leak] function on [`Box`]
/// except that there is no way to recover the leaked memory.
///
/// This function is mainly useful for data that lives for the remainder of
/// the program's life. Dropping the returned reference will cause a memory