summaryrefslogtreecommitdiff
path: root/src/hir/path.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-05-19 22:15:02 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-05-19 22:15:02 +0800
commitb48167dec0c1c05b463991a8db5a8db70a5ae604 (patch)
treeeadc95ab546a617d298fb3a16fb080e1bc4355e8 /src/hir/path.cpp
parentdab5cf5462d8fce6d6fcaa1343df8f5f3b763b8a (diff)
downloadmrust-b48167dec0c1c05b463991a8db5a8db70a5ae604.tar.gz
All - Switch to using interned (de-duplicated) RcString-s instead of std::string for paths/identifiers
Diffstat (limited to 'src/hir/path.cpp')
-rw-r--r--src/hir/path.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hir/path.cpp b/src/hir/path.cpp
index e6dab41f..a867c245 100644
--- a/src/hir/path.cpp
+++ b/src/hir/path.cpp
@@ -8,7 +8,7 @@
#include <hir/path.hpp>
#include <hir/type.hpp>
-::HIR::SimplePath HIR::SimplePath::operator+(const ::std::string& s) const
+::HIR::SimplePath HIR::SimplePath::operator+(const RcString& s) const
{
::HIR::SimplePath ret(m_crate_name);
ret.m_components = m_components;
@@ -193,11 +193,11 @@ 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):
+::HIR::Path::Path(TypeRef ty, RcString 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):
+::HIR::Path::Path(TypeRef ty, GenericPath trait, RcString item, PathParams item_params):
m_data( Data::make_UfcsKnown({ box$(mv$(ty)), mv$(trait), mv$(item), mv$(item_params) }) )
{
}