Skip to content

Commit ad3dcc0

Browse files
committed
Remove the last use of istr::to_estr from rustc. Issue #855
1 parent 8f531e7 commit ad3dcc0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/comp/driver/rustc.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,11 @@ fn build_session_options(binary: &istr, match: &getopts::match,
391391
}
392392
2u
393393
} else if opt_present(match, ~"OptLevel") {
394-
alt istr::to_estr(getopts::opt_str(match, ~"OptLevel")) {
395-
"0" { 0u }
396-
"1" { 1u }
397-
"2" { 2u }
398-
"3" { 3u }
394+
alt getopts::opt_str(match, ~"OptLevel") {
395+
~"0" { 0u }
396+
~"1" { 1u }
397+
~"2" { 2u }
398+
~"3" { 3u }
399399
_ {
400400
log_err "error: optimization level needs " +
401401
"to be between 0-3";

0 commit comments

Comments
 (0)