summaryrefslogtreecommitdiff
path: root/src/trans/enumerate.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2018-12-30 14:51:21 +0800
committerJohn Hodge <tpg@ucc.asn.au>2018-12-30 14:51:21 +0800
commit852050a97d8304d30d1ea51b7acacf1ece387973 (patch)
treea21d04b3456569262938a7202468383d6ee790ca /src/trans/enumerate.cpp
parent823ad74acb87dced844acade9b7799e9793c59a4 (diff)
downloadmrust-852050a97d8304d30d1ea51b7acacf1ece387973.tar.gz
Auto Impls - Automatic delegating impl of Clone for tuples
Diffstat (limited to 'src/trans/enumerate.cpp')
-rw-r--r--src/trans/enumerate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/trans/enumerate.cpp b/src/trans/enumerate.cpp
index 06ca92a3..bb6d6e6f 100644
--- a/src/trans/enumerate.cpp
+++ b/src/trans/enumerate.cpp
@@ -1393,6 +1393,7 @@ void Trans_Enumerate_FillFrom_Path(EnumState& state, const ::HIR::Path& path, co
{
const auto& pe = path_mono.m_data.as_UfcsKnown();
ASSERT_BUG(sp, pe.item == "clone", "");
+ // TODO: If this is !Copy, then we need to ensure that the inner type's clone impls are also available
// Add this type to a list of types that will have the impl auto-generated
state.rv.auto_clone_impls.insert( pe.type->clone() );
}