summaryrefslogtreecommitdiff
path: root/src/hir/hir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-09 09:54:57 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-09 09:54:57 +0800
commit502cc9c8dc1941877b35e45d742a3e36264671ca (patch)
tree5ff1f49577673035d7e4d9ff951884e6e979c3f1 /src/hir/hir.hpp
parent7685ecc25ad47d369ea250d36c71bae4cec2d9a1 (diff)
downloadmrust-502cc9c8dc1941877b35e45d742a3e36264671ca.tar.gz
HIR - Save and use paths to #[lang] items
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r--src/hir/hir.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp
index 3447aaa0..a938579a 100644
--- a/src/hir/hir.hpp
+++ b/src/hir/hir.hpp
@@ -263,6 +263,9 @@ public:
/// Macros exported by this crate
::std::unordered_map< ::std::string, ::MacroRules > m_exported_macros;
+ /// Language items avaliable through this crate (includes ones from loaded externs)
+ ::std::unordered_map< ::std::string, ::HIR::SimplePath> m_lang_items;
+
const ::HIR::SimplePath& get_lang_item_path(const Span& sp, const char* name) const;
const ::HIR::TypeItem& get_typeitem_by_path(const Span& sp, const ::HIR::SimplePath& path) const;