about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2013-09-04 13:10:22 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2013-09-04 13:10:32 +0200
commit7f834c5c075afdda7cb493ba75b54dbe950e5b51 (patch)
tree3ec136c0278066dd19afefc456da14402d7cc81c /src/test/codegen/stack-alloc-string-slice.cc
parent0f3c87e26e2a3583278a07e032ffc476b60cacc7 (diff)
downloadrust-7f834c5c075afdda7cb493ba75b54dbe950e5b51.tar.gz
rust-7f834c5c075afdda7cb493ba75b54dbe950e5b51.zip
Update clients of path.rs to use new API.
In most cases this involved removing a ~str allocations or clones
(yay), or coercing a ~str to a slice.  In a few places, I had to bind
an intermediate Path (e.g. path.pop() return values), so that it would
live long enough to support the borrowed &str.

And in a few places, where the code was actively using the property
that the old API returned ~str's, I had to put in to_owned() or
clone(); but in those cases, we're trading an allocation within the
path.rs code for one in the client code, so they neutralize each
other.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions