diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-08 15:59:40 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-08 15:59:40 +0800 |
commit | 0c50c6f50831bc79c12aed4e3a83ab8919661d34 (patch) | |
tree | af813b9d2ad926cba7bd0958f5eed6e3a5d9230f /src/hir/hir.cpp | |
parent | f2e025e7e7cc1e00407c2ad9a28afe6e318bdbdc (diff) | |
download | mrust-0c50c6f50831bc79c12aed4e3a83ab8919661d34.tar.gz |
HIR Typecheck - Starting work on Fn* traits
Diffstat (limited to 'src/hir/hir.cpp')
-rw-r--r-- | src/hir/hir.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp index 81a4d488..dc0aca0a 100644 --- a/src/hir/hir.cpp +++ b/src/hir/hir.cpp @@ -169,6 +169,10 @@ const ::HIR::SimplePath& ::HIR::Crate::get_lang_item_path(const Span& sp, const static ::HIR::SimplePath lang_path { "", {"cmp", "PartialEq"} }; return lang_path; } + else if( ::std::strcmp(name, "fn_once") == 0 ) { + static ::HIR::SimplePath lang_path { "", {"ops", "FnOnce"} }; + return lang_path; + } else { ERROR(sp, E0000, "Unknown language item '" << name << "' encountered"); } |