summaryrefslogtreecommitdiff
path: root/src/ast/types.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-05-22 20:20:14 +0800
committerJohn Hodge <tpg@mutabah.net>2018-05-22 20:20:14 +0800
commitf360a87c6c44f1f32c21b64c7a8a6e530737cbb0 (patch)
tree12f58229f1e4362a9f499ca39363fba662e77823 /src/ast/types.cpp
parentde9ecd7a2d70359b34e77ded57e5aa9284345ac5 (diff)
downloadmrust-f360a87c6c44f1f32c21b64c7a8a6e530737cbb0.tar.gz
AST - Add lifetime params to & types
Diffstat (limited to 'src/ast/types.cpp')
-rw-r--r--src/ast/types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/types.cpp b/src/ast/types.cpp
index 8065a3ba..98bc6ee1 100644
--- a/src/ast/types.cpp
+++ b/src/ast/types.cpp
@@ -128,7 +128,7 @@ TypeRef TypeRef::clone() const
_COPY(Primitive)
_COPY(Function)
_CLONE(Tuple, { H::clone_ty_vec(old.inner_types) })
- _CLONE(Borrow, { old.is_mut, box$(old.inner->clone()) })
+ _CLONE(Borrow, { AST::LifetimeRef(old.lifetime), old.is_mut, box$(old.inner->clone()) })
_CLONE(Pointer, { old.is_mut, box$(old.inner->clone()) })
_CLONE(Array, { box$(old.inner->clone()), old.size })
_COPY(Generic)