about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2013-09-04 13:04:47 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2013-09-04 13:07:29 +0200
commit0f3c87e26e2a3583278a07e032ffc476b60cacc7 (patch)
treee142400ec67c0dd53faac97d3d586d199ef6357d /src/test/codegen/stack-alloc-string-slice.rs
parent64ff31558480f2bf0dea71a0c3e2880387edb826 (diff)
downloadrust-0f3c87e26e2a3583278a07e032ffc476b60cacc7.tar.gz
rust-0f3c87e26e2a3583278a07e032ffc476b60cacc7.zip
Revise path.rs API to not allocate ~str so much.
Note that I left dirname as returning ~str, because both of its
implementations work by calling dir_path, which produces a new path,
and thus we cannot borrow the result from &'a self passed to dirname
(because the new path returned by dir_path will not live long enough
to satisfy the lifetime 'a).
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions