about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-05-05 14:15:11 -0700
committerAaron Turon <aturon@mozilla.com>2014-05-14 22:42:46 -0700
commit8f9cbe08c61b05527e6d48589d4a963126448467 (patch)
tree2e649aa017f49500e2ebd51d783073cf547d4b8a /src/rustllvm/RustWrapper.cpp
parente10fd317211511c3fb4656aee10eb4fd17dc8586 (diff)
downloadrust-8f9cbe08c61b05527e6d48589d4a963126448467.tar.gz
rust-8f9cbe08c61b05527e6d48589d4a963126448467.zip
Add ToCStr impl for &Path and StrBuf
This is a stopgap until DST (#12938) lands.

Until DST lands, we cannot decompose &str into & and str, so we cannot
usefully take ToCStr arguments by reference (without forcing an
additional & around &str). So we are instead temporarily adding an
instance for &Path and StrBuf, so that we can take ToCStr as owned. When
DST lands, the &Path instance should be removed, the string instances
should be revisted, and arguments bound by ToCStr should be passed by
reference.

FIXMEs have been added accordingly.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions