From 62c224ffe4845ed3a1f651d05ea0be84d5c870ea Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 30 Sep 2010 16:10:30 -0700 Subject: Drop slots on block exits even when blocks have no statements. Part way to fixing bind leakage in rustc. --- src/boot/fe/ast.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/boot/fe') diff --git a/src/boot/fe/ast.ml b/src/boot/fe/ast.ml index 46a87dfe..78b3ac51 100644 --- a/src/boot/fe/ast.ml +++ b/src/boot/fe/ast.ml @@ -1545,6 +1545,7 @@ and fmt_pat (ff:Format.formatter) (pat:pat) : unit = fmt_lval ff ctor; fmt_bracketed_arr_sep "(" ")" "," fmt_pat ff pats | PAT_slot (_, ident) -> + fmt ff "?"; fmt_ident ff ident | PAT_wild -> fmt ff "_" -- cgit v1.2.3