Skip to content

Commit da4d0ba

Browse files
committed
---
yaml --- r: 276141 b: refs/heads/master c: 16eaecb h: refs/heads/master i: 276139: 5fdd7ba
1 parent b737482 commit da4d0ba

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,5 +1,5 @@
11
---
2-
refs/heads/master: 49d28258a72d70cf7c752caa6b394761a02a5700
2+
refs/heads/master: 16eaecbe43bc135b5b69cd114c25deb14a09c9e4
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/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)