diff options
| author | Youngsoo Son <ysoo.son@samsung.com> | 2013-05-10 20:08:56 +0900 |
|---|---|---|
| committer | Youngsoo Son <ysoo.son@samsung.com> | 2013-05-10 20:08:56 +0900 |
| commit | 24ef88cee96de837370ec370ed4d1f3aa3530a20 (patch) | |
| tree | 931a1c73110fa3316d51f19f618dc07167d67ea8 /src/libsyntax/ext | |
| parent | b7da97504943c79185548881aab88d6a0e2118fd (diff) | |
| download | rust-24ef88cee96de837370ec370ed4d1f3aa3530a20.tar.gz rust-24ef88cee96de837370ec370ed4d1f3aa3530a20.zip | |
renamed str::from_slice to str::to_owned
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 34a37e4f6b4..b1ec9643f4e 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -123,7 +123,7 @@ pub mod rt { impl<'self> ToSource for &'self str { fn to_source(&self, _cx: @ext_ctxt) -> ~str { - let lit = dummy_spanned(ast::lit_str(@str::from_slice(*self))); + let lit = dummy_spanned(ast::lit_str(@str::to_owned(*self))); pprust::lit_to_str(@lit) } } |
