File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: f1132496dddbdd88f321a7919eec3d65136b3f75
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 1f13eab3c02ee05b96f0f4bbf6fb808332d6f908
4
+ refs/heads/snap-stage3: d9b0d4b60366e463ef14c757485c1849cba7d1cc
5
5
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ The initializer is `DEFAULT-TAB-WIDTH'.")
229
229
; ; regexp (which is broken on a few edge cases), add our own 'rust
230
230
; ; compilation error regexp and use it instead.
231
231
(defvar rustc-compilation-regexps
232
- (let ((file " \\ ([^\n ]+\\ )" )
232
+ (let ((file " ^ \\ ([^\n ]+\\ )" )
233
233
(start-line " \\ ([0-9]+\\ )" )
234
234
(start-col " \\ ([0-9]+\\ )" )
235
235
(end-line " \\ ([0-9]+\\ )" )
Original file line number Diff line number Diff line change 512
512
fun:uv__platform_loop_init
513
513
fun:uv__loop_init
514
514
fun:uv_loop_new
515
- fun:rust_uv_loop_new__c_stack_shim
516
515
...
517
516
}
Original file line number Diff line number Diff line change @@ -475,7 +475,8 @@ pub fn main() {
475
475
pub fn main_args ( args : & [ ~str ] ) {
476
476
let opts = ~[ getopts:: optflag ( "h" ) , getopts:: optflag ( "help" ) ,
477
477
getopts:: optflag ( "j" ) , getopts:: optflag ( "json" ) ,
478
- getopts:: optmulti ( "c" ) , getopts:: optmulti ( "cfg" ) ] ;
478
+ getopts:: optmulti ( "c" ) , getopts:: optmulti ( "cfg" ) ,
479
+ getopts:: optflag ( "v" ) , getopts:: optflag ( "version" ) ] ;
479
480
let matches = & match getopts:: getopts ( args, opts) {
480
481
result:: Ok ( m) => m,
481
482
result:: Err ( f) => {
@@ -488,6 +489,13 @@ pub fn main_args(args: &[~str]) {
488
489
getopts:: opt_present ( matches, "help" ) ;
489
490
let json = getopts:: opt_present ( matches, "j" ) ||
490
491
getopts:: opt_present ( matches, "json" ) ;
492
+
493
+ if getopts:: opt_present ( matches, "v" ) ||
494
+ getopts:: opt_present ( matches, "version" ) {
495
+ rustc:: version ( args[ 0 ] ) ;
496
+ return ;
497
+ }
498
+
491
499
let mut args = matches. free . clone ( ) ;
492
500
493
501
args. shift ( ) ;
You can’t perform that action at this time.
0 commit comments