/* * MRustC - Rust Compiler * - By John Hodge (Mutabah/thePowersGang) * * synexts/lang_item.cpp * - Binds language items to #[lang_item] tagged items */ #include #include "../common.hpp" #include "../ast/ast.hpp" #include "../ast/crate.hpp" void handle_lang_item(const Span& sp, AST::Crate& crate, const AST::Path& path, const ::std::string& name, AST::eItemType type) { if(name == "phantom_fn") { // - Just save path } else if( name == "send" ) { // Don't care, Send is fully library in mrustc // - Needed for `static` } else if( name == "sync" ) { // Don't care, Sync is fully library in mrustc // - Needed for `static` } else if( name == "sized" ) { DEBUG("Bind 'sized' to " << path); } else if( name == "copy" ) { DEBUG("Bind 'copy' to " << path); } // ops traits else if( name == "drop" ) { DEBUG("Bind '"<