summaryrefslogtreecommitdiff
path: root/src/hir/path.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-07-16 16:45:51 +0800
committerJohn Hodge <tpg@mutabah.net>2016-07-16 16:45:51 +0800
commitb9543cd50d06c3478987cf3ab6ea4215fd9124e6 (patch)
treedbdba7e0d16575fcd2e48236de6c074451b7030b /src/hir/path.cpp
parentae0dbea6b5d416dbae9f50a594d23d1ceebccccf (diff)
downloadmrust-b9543cd50d06c3478987cf3ab6ea4215fd9124e6.tar.gz
HIR Typecheck CS - Reduce log spam
Diffstat (limited to 'src/hir/path.cpp')
-rw-r--r--src/hir/path.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/path.cpp b/src/hir/path.cpp
index 6a7e00f7..b66cb26b 100644
--- a/src/hir/path.cpp
+++ b/src/hir/path.cpp
@@ -184,6 +184,10 @@ bool ::HIR::TraitPath::operator==(const ::HIR::TraitPath& x) const
m_data( ::HIR::Path::Data::make_Generic(::HIR::GenericPath(mv$(sp))) )
{
}
+::HIR::Path::Path(TypeRef ty, GenericPath trait, ::std::string item, PathParams item_params):
+ m_data( Data::make_UfcsKnown({ box$(mv$(ty)), mv$(trait), mv$(item), mv$(item_params) }) )
+{
+}
::HIR::Path HIR::Path::clone() const
{
TU_MATCH(Data, (m_data), (e),