diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-05-28 12:28:53 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-05-28 12:28:53 +0800 |
commit | 99350d82f33acbbd3968dd0e45cfcfa415373b19 (patch) | |
tree | 011bac1e280cde9d460b3f626e542b5f557bf945 /src/hir | |
parent | f56c30f45738698fc791f5e33d7203c9421b121b (diff) | |
download | mrust-99350d82f33acbbd3968dd0e45cfcfa415373b19.tar.gz |
HIR - (minir) Fix debug output of patterns
Diffstat (limited to 'src/hir')
-rw-r--r-- | src/hir/pattern.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hir/pattern.cpp b/src/hir/pattern.cpp index f51d7990..da6446d7 100644 --- a/src/hir/pattern.cpp +++ b/src/hir/pattern.cpp @@ -126,16 +126,16 @@ namespace HIR { os << "]"; ), (SplitSlice, - os << "["; + os << "[ "; for(const auto& s : e.leading) os << s << ", "; if( e.extra_bind.is_valid() ) { os << e.extra_bind; } - os << ".. "; + os << ".."; for(const auto& s : e.trailing) - os << s << ", "; - os << "]"; + os << ", " << s; + os << " ]"; ) ) return os; |