summaryrefslogtreecommitdiff
path: root/src/hir/hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-09-10 21:02:07 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-09-10 21:02:07 +0800
commit9c31f71380cee5d7e6a67d2f7f805619366e2e64 (patch)
treece0a884071e5203010a9a4ddafdc7cd021ba4c0a /src/hir/hir.cpp
parent22ce602788b285b303854a095a0c340274a76b06 (diff)
downloadmrust-9c31f71380cee5d7e6a67d2f7f805619366e2e64.tar.gz
Consteval - Remove BorrowOf in favor of BorrowPath/BorrowData
Diffstat (limited to 'src/hir/hir.cpp')
-rw-r--r--src/hir/hir.cpp10
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;
)