Skip to content

Commit 7229c54

Browse files
committed
---
yaml --- r: 5113 b: refs/heads/master c: ad3dcc0 h: refs/heads/master i: 5111: 9c1f35f v: v3
1 parent 18af00e commit 7229c54

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

+1-1
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

+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)