File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1499,8 +1499,9 @@ fn next_comment(&ps s) -> option::t[lexer::cmnt] {
1499
1499
}
1500
1500
}
1501
1501
1502
-
1503
- fn constr_args_to_str[ T ] ( fn ( & T ) -> str f,
1502
+ // Removing the aliases from the type of f in the next two functions
1503
+ // triggers memory corruption, but I haven't isolated the bug yet. FIXME
1504
+ fn constr_args_to_str[ T ] ( & fn ( & T ) -> str f,
1504
1505
& ( @ast:: constr_arg_general[ T ] ) [ ] args) -> str {
1505
1506
auto comma = false ;
1506
1507
auto s = "(" ;
@@ -1512,7 +1513,7 @@ fn constr_args_to_str[T](fn(&T) -> str f,
1512
1513
ret s;
1513
1514
}
1514
1515
1515
- fn constr_arg_to_str[ T ] ( fn ( & T ) -> str f, & ast:: constr_arg_general_[ T ] c) ->
1516
+ fn constr_arg_to_str[ T ] ( & fn ( & T ) -> str f, & ast:: constr_arg_general_[ T ] c) ->
1516
1517
str {
1517
1518
alt ( c) {
1518
1519
case ( ast:: carg_base) { ret "* "; }
You can’t perform that action at this time.
0 commit comments