Skip to content

Commit b678be8

Browse files
committed
---
yaml --- r: 5114 b: refs/heads/master c: ad3dcc0 h: refs/heads/master v: v3
1 parent df4aca0 commit b678be8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8f531e769a025859eeebf6e99c50c4b786fb0814
2+
refs/heads/master: ad3dcc0689b87c32fe7142c49846be75ef516a81

trunk/src/comp/driver/rustc.rs

Lines changed: 5 additions & 5 deletions
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)