diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-09-10 21:02:07 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-09-10 21:02:07 +0800 |
commit | 9c31f71380cee5d7e6a67d2f7f805619366e2e64 (patch) | |
tree | ce0a884071e5203010a9a4ddafdc7cd021ba4c0a /src/hir/hir.cpp | |
parent | 22ce602788b285b303854a095a0c340274a76b06 (diff) | |
download | mrust-9c31f71380cee5d7e6a67d2f7f805619366e2e64.tar.gz |
Consteval - Remove BorrowOf in favor of BorrowPath/BorrowData
Diffstat (limited to 'src/hir/hir.cpp')
-rw-r--r-- | src/hir/hir.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp index b913c4e3..ed6230d5 100644 --- a/src/hir/hir.cpp +++ b/src/hir/hir.cpp @@ -36,9 +36,12 @@ namespace HIR { (Float, os << e; ), - (BorrowOf, + (BorrowPath, os << "&" << e; ), + (BorrowData, + os << "&" << *e; + ), (String, os << "\"" << e << "\""; ) @@ -75,9 +78,12 @@ namespace HIR { (Float, return le == re; ), - (BorrowOf, + (BorrowPath, return le == re; ), + (BorrowData, + return *le == *re; + ), (String, return le == re; ) |