diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-14 18:10:18 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-14 18:10:18 +0800 |
commit | bf6921f2d4da611ce75e560136a0019bbc9c182a (patch) | |
tree | 27d3337fae3d8e5a88b40355f526088bf3639010 /src/hir/expr.hpp | |
parent | 399445e13bd9c99993f758734103c8c7dbf1036e (diff) | |
download | mrust-bf6921f2d4da611ce75e560136a0019bbc9c182a.tar.gz |
HIR Expand Calls - Add Index desugar
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r-- | src/hir/expr.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp index 137377d7..f69429f6 100644 --- a/src/hir/expr.hpp +++ b/src/hir/expr.hpp @@ -22,6 +22,16 @@ enum class ValueUsage { // Value is moved Move, }; +static inline ::std::ostream& operator<<(::std::ostream& os, const ValueUsage& x) { + switch(x) + { + case ValueUsage::Unknown: os << "Unknown"; break; + case ValueUsage::Borrow: os << "Borrow"; break; + case ValueUsage::Mutate: os << "Mutate"; break; + case ValueUsage::Move: os << "Move"; break; + } + return os; +} class GenericParams; |