From 24ef88cee96de837370ec370ed4d1f3aa3530a20 Mon Sep 17 00:00:00 2001 From: Youngsoo Son Date: Fri, 10 May 2013 20:08:56 +0900 Subject: renamed str::from_slice to str::to_owned --- src/libsyntax/ext/quote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax') 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) } } -- cgit 1.4.1-3-g733a5