diff options
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"); } |