File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,6 @@ fn bad_expr_word_table() -> hashmap[str, ()] {
170
170
words. insert ( "state" , ( ) ) ;
171
171
words. insert ( "gc" , ( ) ) ;
172
172
words. insert ( "native" , ( ) ) ;
173
- words. insert ( "auto" , ( ) ) ;
174
173
words. insert ( "fn" , ( ) ) ;
175
174
words. insert ( "pred" , ( ) ) ;
176
175
words. insert ( "iter" , ( ) ) ;
Original file line number Diff line number Diff line change @@ -1052,18 +1052,16 @@ fn print_decl(&ps s, &@ast::decl decl) {
1052
1052
case ( ast:: decl_local ( ?locs) ) {
1053
1053
space_if_not_hardbreak ( s) ;
1054
1054
ibox ( s, indent_unit) ;
1055
- alt ( locs. ( 0 ) . node . ty ) {
1056
- case ( some ( ?ty) ) {
1057
- word_nbsp ( s, "let" ) ;
1058
- print_type ( s, * ty) ;
1059
- space ( s. s ) ;
1060
- }
1061
- case ( _) {
1062
- word_nbsp ( s, "auto" ) ;
1063
- }
1064
- }
1055
+ word_nbsp ( s, "let" ) ;
1065
1056
fn print_local ( & ps s, & @ast:: local loc) {
1066
1057
word ( s. s , loc. node . ident ) ;
1058
+ alt ( loc. node . ty ) {
1059
+ some ( ?ty) {
1060
+ word_space ( s, ":" ) ;
1061
+ print_type ( s, * ty) ;
1062
+ }
1063
+ _ { }
1064
+ }
1067
1065
alt loc. node . init {
1068
1066
some ( ?init) {
1069
1067
space ( s. s ) ;
You can’t perform that action at this time.
0 commit comments