summaryrefslogtreecommitdiff
path: root/src/ast/crate.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-29 12:57:24 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-29 12:57:24 +0800
commit1689ddf48bf7ce56df11c19d73eef84aea918e0d (patch)
tree3f955a9eaf815e11f50a025925f03c0e1365fbc7 /src/ast/crate.hpp
parent9c5fd80efca12e1be08e0c4efad920eab794daa4 (diff)
downloadmrust-1689ddf48bf7ce56df11c19d73eef84aea918e0d.tar.gz
AST Crate - Planning post-load index pass
Diffstat (limited to 'src/ast/crate.hpp')
-rw-r--r--src/ast/crate.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ast/crate.hpp b/src/ast/crate.hpp
index fecd01b0..3b01d221 100644
--- a/src/ast/crate.hpp
+++ b/src/ast/crate.hpp
@@ -59,9 +59,12 @@ class ExternCrate
public:
::HIR::CratePtr m_hir;
- ExternCrate(const ::std::string& path);
- ExternCrate(const ExternCrate&) = delete;
+ ExternCrate(const ::std::string& name, const ::std::string& path);
+
ExternCrate(ExternCrate&&) = default;
+ ExternCrate& operator=(ExternCrate&&) = default;
+ ExternCrate(const ExternCrate&) = delete;
+ ExternCrate& operator=(const ExternCrate& ) = delete;
void with_all_macros(::std::function<void(const ::std::string& , const MacroRules&)> cb) const;
const MacroRules* find_macro_rules(const ::std::string& name) const;