diff options
| author | bors <bors@rust-lang.org> | 2014-11-01 11:21:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-01 11:21:47 +0000 |
| commit | 0547a407aa03b9f1c03843aead617a2e8c5d1147 (patch) | |
| tree | 28ac3a579cf0bf5da2fd1521c2ac5544bfa5f464 /src/rustllvm/RustWrapper.cpp | |
| parent | 51a25c7f96ad0d00836314d705e3f0a477562a2c (diff) | |
| parent | dd9dda7a1c87170fe241345f6da88874921ec433 (diff) | |
| download | rust-0547a407aa03b9f1c03843aead617a2e8c5d1147.tar.gz rust-0547a407aa03b9f1c03843aead617a2e8c5d1147.zip | |
auto merge of #18457 : japaric/rust/tocstr, r=alexcrichton
Methods that used to take `ToCStr` implementors by value, now take them by reference. In particular, this breaks some uses of `Command`:
``` rust
Command::new("foo"); // Still works
Command::new(path) -> Command::new(&path)
cmd.arg(string) -> cmd.arg(&string) or cmd.arg(string.as_slice())
```
[breaking-change]
---
It may be sensible to remove `impl ToCstr for String` since:
- We're getting `impl Deref<str> for String`, so `string.to_cstr()` would still work
- `Command` methods would still be able to use `cmd.arg(string[..])` instead of `cmd.arg(&string)`.
But, I'm leaving that up to the library stabilization process.
r? @aturon
cc #16918
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
