forked from rust-lang/rust-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build on 0.11pre: Change ~"foo" to "foo".to_owned()
[~"string" and &"string" literals are gone](rust-lang/rust#13877), and were replaced by "string".to_owned() and just "string", respectively. This commit was made by a simple `sed` to convert the existing instances of ~"string" on the codebase. For reference, the command used was this: sed -e 's/~\("[^"]*"\)/\1.to_owned()/g' -i *.rs That wouldn't work if for strings that contain the `\"` escape in them, but this codebase had none. Similar work is likely to be necessary after [~T is substituted by Box<T>](rust-lang/rust#13885).
- Loading branch information
1 parent
02cc483
commit 6b4a11c
Showing
3 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters