Skip to content

Commit cec0534

Browse files
killerswanmarijnh
authored andcommitted
(core::str) stop using index_chars
1 parent 6ea3d79 commit cec0534

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/comp/back/link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ mod write {
109109
// Decides what to call an intermediate file, given the name of the output
110110
// and the extension to use.
111111
fn mk_intermediate_name(output_path: str, extension: str) -> str unsafe {
112-
let stem = alt str::index_chars(output_path, '.') {
112+
let stem = alt str::index(output_path, '.') {
113113
option::some(dot_pos) {
114-
str::slice_chars(output_path, 0u, dot_pos)
114+
str::slice(output_path, 0u, dot_pos)
115115
}
116116
option::none { output_path }
117117
};

src/libcore/str.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ export
7070
lines_iter,
7171

7272
// Searching
73-
index_chars,
73+
//index_chars,
7474
index,
7575
index_from,
76-
//byte_index,
77-
//byte_index_from,
7876
rindex,
7977
//rindex_chars,
8078
find_chars,

0 commit comments

Comments
 (0)