Skip to content

Commit 3bd6ed7

Browse files
Seldaekthestinger
authored andcommitted
---
yaml --- r: 63884 b: refs/heads/snap-stage3 c: eee7acc h: refs/heads/master v: v3
1 parent fc6cf6e commit 3bd6ed7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-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: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: d820355213d433c85ef49bae03022d754ca2f5d5
4+
refs/heads/snap-stage3: eee7accedb4b529dac67b2a50c4e25e3f47777d8
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librust/rust.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ fn usage() {
238238

239239
pub fn main() {
240240
let os_args = os::args();
241+
242+
if (os_args.len() > 1 && (os_args[1] == ~"-v" || os_args[1] == ~"--version")) {
243+
rustc::version(os_args[0]);
244+
unsafe { exit(0); }
245+
}
246+
241247
let args = os_args.tail();
242248

243249
if !args.is_empty() {

0 commit comments

Comments
 (0)