Skip to content

Commit f2f442c

Browse files
committed
---
yaml --- r: 277523 b: refs/heads/try c: 16eaecb h: refs/heads/master i: 277521: bc3f3de 277519: 41e5da1
1 parent 3c38bc1 commit f2f442c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 49d28258a72d70cf7c752caa6b394761a02a5700
4+
refs/heads/try: 16eaecbe43bc135b5b69cd114c25deb14a09c9e4
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc/session/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,10 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
11361136
(Some("3"), _) => OptLevel::Aggressive,
11371137
(Some("s"), true) => OptLevel::Size,
11381138
(Some("z"), true) => OptLevel::SizeMin,
1139+
(Some("s"), false) | (Some("z"), false) => {
1140+
early_error(error_format, &format!("the optimizations s or z are only \
1141+
accepted on the nightly compiler"));
1142+
},
11391143
(Some(arg), _) => {
11401144
early_error(error_format, &format!("optimization level needs to be \
11411145
between 0-3 (instead was `{}`)",

0 commit comments

Comments
 (0)