From cec053487c84e8b5406e24d6f9f72966cdcfd0da Mon Sep 17 00:00:00 2001 From: Kevin Cantu Date: Wed, 22 Feb 2012 23:56:51 -0800 Subject: [PATCH] (core::str) stop using index_chars --- src/comp/back/link.rs | 4 ++-- src/libcore/str.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index e02aad48c5a..5b7d7a35c53 100644 --- a/src/comp/back/link.rs +++ b/src/comp/back/link.rs @@ -109,9 +109,9 @@ mod write { // Decides what to call an intermediate file, given the name of the output // and the extension to use. fn mk_intermediate_name(output_path: str, extension: str) -> str unsafe { - let stem = alt str::index_chars(output_path, '.') { + let stem = alt str::index(output_path, '.') { option::some(dot_pos) { - str::slice_chars(output_path, 0u, dot_pos) + str::slice(output_path, 0u, dot_pos) } option::none { output_path } }; diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 8760403a77a..b9eea353e21 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -70,11 +70,9 @@ export lines_iter, // Searching - index_chars, + //index_chars, index, index_from, - //byte_index, - //byte_index_from, rindex, //rindex_chars, find_chars,