diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-26 21:55:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-26 21:55:29 +0800 |
commit | e1d92ce17d029b1dbeffe0510b6462c2994fdcb0 (patch) | |
tree | 4cc4c548d21d03a17d7d27fcc3b184f570eabd84 /src/hir/from_ast.cpp | |
parent | cbb8a2b167ac50476c067f92c91184f12f67f7c1 (diff) | |
download | mrust-e1d92ce17d029b1dbeffe0510b6462c2994fdcb0.tar.gz |
HIR Typecheck - Fn type handling
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 4ea9ea8a..8a9d25fc 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -633,6 +633,8 @@ const ::HIR::SimplePath path_Sized = ::HIR::SimplePath("", {"marker", "Sized"}); box$( LowerHIR_Type(*e.info.m_rettype) ), mv$(args) }; + if( f.m_abi == "" ) + f.m_abi = "rust"; return ::HIR::TypeRef( ::HIR::TypeRef::Data::make_Function( mv$(f) ) ); ), (Generic, |