From 05ae134acebee3f35af4880de113a7ae7ce20002 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 23 Dec 2013 17:45:01 +0100 Subject: [std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior --- src/libsyntax/ext/source_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/source_util.rs b/src/libsyntax/ext/source_util.rs index 711f8ff11ee..a9f94da7a98 100644 --- a/src/libsyntax/ext/source_util.rs +++ b/src/libsyntax/ext/source_util.rs @@ -109,7 +109,7 @@ pub fn expand_include_str(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) } Ok(bytes) => bytes, }; - match str::from_utf8_owned_opt(bytes) { + match str::from_utf8_owned(bytes) { Some(src) => { // Add this input file to the code map to make it available as // dependency information -- cgit 1.4.1-3-g733a5