diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-06 23:12:39 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-06 23:12:39 +0800 |
commit | 0a18cb44477d4ac241ce08feb768136684714a07 (patch) | |
tree | 6df36577d55037afff2270afc7e581d6c78b187b /src/hir/hir.cpp | |
parent | e31213085b8d4846981b4db61502bbf46d1ed59f (diff) | |
download | mrust-0a18cb44477d4ac241ce08feb768136684714a07.tar.gz |
HIR - BorrowType on pointer, allow pointer coerce
Diffstat (limited to 'src/hir/hir.cpp')
-rw-r--r-- | src/hir/hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp index 12dee93f..756e4b7b 100644 --- a/src/hir/hir.cpp +++ b/src/hir/hir.cpp @@ -119,7 +119,7 @@ namespace { return matches_type_int(params, *le.inner, *re.inner, ty_res); ), (Pointer, - if( le.is_mut != re.is_mut ) + if( le.type != re.type ) return false; return matches_type_int(params, *le.inner, *re.inner, ty_res); ), |