Remove the last use of istr::to_estr from rustc. Issue #855

This commit is contained in:
Brian Anderson 2011-09-01 13:21:29 -07:00
parent 8f531e769a
commit ad3dcc0689

View file

@ -391,11 +391,11 @@ fn build_session_options(binary: &istr, match: &getopts::match,
}
2u
} else if opt_present(match, ~"OptLevel") {
alt istr::to_estr(getopts::opt_str(match, ~"OptLevel")) {
"0" { 0u }
"1" { 1u }
"2" { 2u }
"3" { 3u }
alt getopts::opt_str(match, ~"OptLevel") {
~"0" { 0u }
~"1" { 1u }
~"2" { 2u }
~"3" { 3u }
_ {
log_err "error: optimization level needs " +
"to be between 0-3";