about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-24 10:46:21 +0000
committerbors <bors@rust-lang.org>2018-07-24 10:46:21 +0000
commita1e6bcb2085cba3d5e549ba3b175f99487c21639 (patch)
tree51faee9c53a9cf16e2014c6f48a15ec0f14c96a2 /src/rustllvm/RustWrapper.cpp
parenta2af8667b1a5166137510aeb2aaad9945f81db6d (diff)
parent6aeeda714e04ac34205a7b948e5585e00d0fa14d (diff)
downloadrust-a1e6bcb2085cba3d5e549ba3b175f99487c21639.tar.gz
rust-a1e6bcb2085cba3d5e549ba3b175f99487c21639.zip
Auto merge of #52189 - cuviper:static-box-leak, r=bluss
doc: Clarify the lifetime returned by `Box::leak`

`Box::leak` mentions that it can return a `'static` reference, but it
wasn't immediately clear to me why it doesn't always do so.  This is
because of the `T: 'a` constraint needed to form a valid reference, and
in general we want to be more flexible than requiring `T: 'static`.
This patch tries to clarify the relationship between `T` and `'a`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions