diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index e02aad48c5a8..5b7d7a35c537 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 8760403a77a2..b9eea353e211 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,