@@ -28,7 +28,7 @@ type arg = rec(ast.mode mode, @ty ty);
28
28
29
29
// NB: If you change this, you'll probably want to change the corresponding
30
30
// AST structure in front/ast.rs as well.
31
- type ty = rec ( sty struct , option. t[ str] cname ) ;
31
+ type ty = rec ( sty struct , bool mut , option. t[ str] cname ) ;
32
32
tag sty {
33
33
ty_nil;
34
34
ty_bool;
@@ -257,7 +257,7 @@ fn ast_ty_to_ty(ty_getter getter, &@ast.ty ast_ty) -> @ty {
257
257
}
258
258
}
259
259
260
- ret @rec( struct=sty, cname=cname) ;
260
+ ret @rec( struct=sty, mut= false , cname=cname) ;
261
261
}
262
262
263
263
// A convenience function to use a crate_ctxt to resolve names for
@@ -522,7 +522,7 @@ fn type_is_signed(@ty t) -> bool {
522
522
}
523
523
524
524
fn plain_ty ( & sty st) -> @ty {
525
- ret @rec ( struct =st, cname=none[ str ] ) ;
525
+ ret @rec ( struct =st, mut = false , cname=none[ str ] ) ;
526
526
}
527
527
528
528
fn ann_to_type ( & ast. ann ann ) -> @ty {
@@ -1075,7 +1075,7 @@ fn check_expr(&fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
1075
1075
}
1076
1076
1077
1077
case ( ast. expr_name ( ?name, ?defopt, _) ) {
1078
- auto t = @ rec ( struct= ty_nil, cname=none [ str ] ) ;
1078
+ auto t = plain_ty ( ty_nil) ;
1079
1079
alt ( option. get [ ast. def ] ( defopt) ) {
1080
1080
case ( ast. def_arg ( ?id) ) {
1081
1081
check ( fcx. locals . contains_key ( id) ) ;
0 commit comments