Remove the last use of istr::to_estr from rustc. Issue #855
This commit is contained in:
parent
8f531e769a
commit
ad3dcc0689
1 changed files with 5 additions and 5 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue