diff options
| author | Graydon Hoare <[email protected]> | 2010-09-30 16:10:30 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-30 16:10:30 -0700 |
| commit | 62c224ffe4845ed3a1f651d05ea0be84d5c870ea (patch) | |
| tree | 4b5fdc0220f369b0cae5784c1d076fe502a78df0 /src/boot/fe | |
| parent | Initial check-in of 99 Bottles Of Beer (diff) | |
| download | rust-62c224ffe4845ed3a1f651d05ea0be84d5c870ea.tar.xz rust-62c224ffe4845ed3a1f651d05ea0be84d5c870ea.zip | |
Drop slots on block exits even when blocks have no statements. Part way to fixing bind leakage in rustc.
Diffstat (limited to 'src/boot/fe')
| -rw-r--r-- | src/boot/fe/ast.ml | 1 |
1 files changed, 1 insertions, 0 deletions
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 "_" |