File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 79015e2d599287d448662e3436f77026c4ffb232
2
+ refs/heads/master: de166745b8035395485bc5bc598f9c507ae80376
Original file line number Diff line number Diff line change @@ -999,9 +999,14 @@ let rec pretty_ty_str (cx:ctxt) (fallback:(Ast.ty -> string)) (ty:Ast.ty) =
999
999
" rec(" ^ (String. concat " , " fields) ^ " )"
1000
1000
| Ast. TY_fn (fnsig , aux ) ->
1001
1001
let format_slot slot =
1002
+ let prefix =
1003
+ match slot.Ast. slot_mode with
1004
+ Ast. MODE_local -> " "
1005
+ | Ast. MODE_alias -> " &"
1006
+ in
1002
1007
match slot.Ast. slot_ty with
1003
1008
None -> Common. bug () " no ty in slot"
1004
- | Some ty' -> pretty_ty_str cx fallback ty'
1009
+ | Some ty' -> prefix ^ ( pretty_ty_str cx fallback ty')
1005
1010
in
1006
1011
let effect = aux.Ast. fn_effect in
1007
1012
let qual = Fmt. sprintf_fmt Ast. fmt_effect_qual () effect in
You can’t perform that action at this time.
0 commit comments