File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8aa946ff5e312543a4e3903ee0d3580fbd8d2887
2
+ refs/heads/master: 8b82a549bf89f101efc19638357d360a968b1348
Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ obj session(cfg targ) {
40
40
fail;
41
41
}
42
42
43
+ fn span_warn ( span sp, str msg) {
44
+ log #fmt( "%s:%u:%u:%u:%u: warning: %s" ,
45
+ sp. filename ,
46
+ sp. lo . line , sp. lo . col ,
47
+ sp. hi . line , sp. hi . col ,
48
+ msg) ;
49
+ }
50
+
43
51
fn bug ( str msg) {
44
52
log #fmt( "error: internal compiler error %s" , msg) ;
45
53
fail;
Original file line number Diff line number Diff line change @@ -452,6 +452,15 @@ impure fn parse_ty(parser p) -> @ast.ty {
452
452
t = ast. ty_path ( parse_path ( p, GREEDY ) , none[ ast. def ] ) ;
453
453
}
454
454
455
+ case ( token. MUTABLE ) {
456
+ p. bump ( ) ;
457
+ p. get_session ( ) . span_warn ( p. get_span ( ) ,
458
+ "ignoring deprecated 'mutable' type constructor" ) ;
459
+ auto typ = parse_ty ( p) ;
460
+ t = typ. node ;
461
+ hi = typ. span ;
462
+ }
463
+
455
464
case ( _) {
456
465
p. err ( "expecting type" ) ;
457
466
t = ast. ty_nil ;
You can’t perform that action at this time.
0 commit comments