diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-27 14:36:46 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-27 14:36:46 +0800 |
commit | 261b3ec9ad093f6a595fa028bfde29c0ece8ad2f (patch) | |
tree | 5cf4e6e59adadcc41cd231af1ad36b79cfc20a7f /src/hir/path.cpp | |
parent | c8a0500be622e501b21fc2d33a2a1bffc964a99b (diff) | |
download | mrust-261b3ec9ad093f6a595fa028bfde29c0ece8ad2f.tar.gz |
HIR Serialise - Untested deserialiser
Diffstat (limited to 'src/hir/path.cpp')
-rw-r--r-- | src/hir/path.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/path.cpp b/src/hir/path.cpp index 6ea3a9b6..1552c8f3 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, ::std::string item, PathParams item_params): + m_data(Data::make_UfcsInherent({ box$(ty), mv$(item), mv$(item_params) })) +{ +} ::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) }) ) { |