summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-04-28 11:05:00 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-04-28 11:05:00 +0800
commit2aaec20f9f4f8fc002086cb1117126dd6ac53b22 (patch)
tree49fc8bb60c670f7e18db6674cc3d0d1e658e3e11 /src/mir/from_hir.hpp
parent9e5d8a66034e95217e00702647fdc6621862c9ae (diff)
downloadmrust-2aaec20f9f4f8fc002086cb1117126dd6ac53b22.tar.gz
MIR Gen - Support `match` in a `match` guard arm
Diffstat (limited to 'src/mir/from_hir.hpp')
-rw-r--r--src/mir/from_hir.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp
index 0dcbd65b..194fd0e0 100644
--- a/src/mir/from_hir.hpp
+++ b/src/mir/from_hir.hpp
@@ -70,8 +70,8 @@ TAGGED_UNION_EX(VarState, (), Invalid, (
(), (),
(
VarState clone() const;
- bool operator==(VarState& x) const;
- bool operator!=(VarState& x) const { return !(*this == x); }
+ bool operator==(const VarState& x) const;
+ bool operator!=(const VarState& x) const { return !(*this == x); }
)
);
extern ::std::ostream& operator<<(::std::ostream& os, const VarState& x);
@@ -110,7 +110,7 @@ TAGGED_UNION(ScopeType, Owning,
}),
// State which should end up with no mutation of variable states
(Freeze, struct {
- //::std::map<unsigned int,VarState> changed_slots;
+ ::std::map<unsigned int,VarState> changed_slots;
//::std::map<unsigned int,VarState> changed_args;
})
);