summaryrefslogtreecommitdiff
path: root/src/ast/path.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-21 20:10:25 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-21 20:10:25 +0800
commitad93bc7fda1988e49b4e3a0d85344d7e3dc7df10 (patch)
treed4fee563f881b5a4ab90dfbb7b40be3486d01349 /src/ast/path.hpp
parentbe0892fb5cd1442013ee9e761e60294a374f4566 (diff)
downloadmrust-ad93bc7fda1988e49b4e3a0d85344d7e3dc7df10.tar.gz
Parse - Updates for better memory efficiency (hopefully)
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r--src/ast/path.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp
index 9a2f3579..7eb17aab 100644
--- a/src/ast/path.hpp
+++ b/src/ast/path.hpp
@@ -156,7 +156,7 @@ public:
// ABSOLUTE
Path(::std::string crate, ::std::vector<PathNode> nodes):
- m_class( Class::make_Absolute({crate: mv$(crate), nodes: mv$(nodes)}) )
+ m_class( Class::make_Absolute({ mv$(crate), mv$(nodes)}) )
{}
// UFCS
@@ -170,23 +170,23 @@ public:
m_class( Class::make_Local({ mv$(name) }) )
{}
Path(::std::string name):
- m_class( Class::make_Local({name: mv$(name)}) )
+ m_class( Class::make_Local({ mv$(name) }) )
{}
// RELATIVE
struct TagRelative {};
Path(TagRelative, ::std::vector<PathNode> nodes):
- m_class( Class::make_Relative({nodes: mv$(nodes)}) )
+ m_class( Class::make_Relative({ mv$(nodes) }) )
{}
// SELF
struct TagSelf {};
Path(TagSelf, ::std::vector<PathNode> nodes):
- m_class( Class::make_Self({nodes: nodes}) )
+ m_class( Class::make_Self({ nodes }) )
{}
// SUPER
struct TagSuper {};
Path(TagSuper, unsigned int count, ::std::vector<PathNode> nodes):
- m_class( Class::make_Super({count: count, nodes: mv$(nodes)}) )
+ m_class( Class::make_Super({ count, mv$(nodes) }) )
{}
//void set_crate(::std::string crate) {