about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2018-07-09 13:25:36 -0700
committerJosh Stone <jistone@redhat.com>2018-07-09 13:25:36 -0700
commit6aeeda714e04ac34205a7b948e5585e00d0fa14d (patch)
tree05be539b980c0cf224f074d4ec19d8989c79adc2 /src/liballoc_jemalloc
parentc6807bb1b282e0c5398aa4e659dbc165b6f3c81b (diff)
downloadrust-6aeeda714e04ac34205a7b948e5585e00d0fa14d.tar.gz
rust-6aeeda714e04ac34205a7b948e5585e00d0fa14d.zip
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/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions