summaryrefslogtreecommitdiff
path: root/src/expand/lang_item.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-12-28 09:49:32 +0800
committerJohn Hodge <tpg@mutabah.net>2018-12-28 09:49:32 +0800
commit4b25ba4af9b3a3c62fd73d2c71e4761b021caec2 (patch)
tree8e1651b1c8a93f1971c6e198ea1e417b6b30db87 /src/expand/lang_item.cpp
parent38575976d5835cb8cc9e7ae335969873d01e7d65 (diff)
downloadmrust-4b25ba4af9b3a3c62fd73d2c71e4761b021caec2.tar.gz
Misc expand tweaks
Diffstat (limited to 'src/expand/lang_item.cpp')
-rw-r--r--src/expand/lang_item.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expand/lang_item.cpp b/src/expand/lang_item.cpp
index 55bde52f..8dd481f3 100644
--- a/src/expand/lang_item.cpp
+++ b/src/expand/lang_item.cpp
@@ -78,6 +78,8 @@ void handle_lang_item(const Span& sp, AST::Crate& crate, const AST::Path& path,
else if( name == "debug_trait" ) { /* TODO: Poke derive() with this */ }
+ else if( TARGETVER_1_29 && name == "termination" ) { } // 1.29 - trait used for non-() main
+
// Structs
else if( name == "non_zero" ) { }
else if( name == "phantom_data" ) { }
@@ -222,6 +224,8 @@ public:
// std - interestingly
else if( name == "f32" ) {}
else if( name == "f64" ) {}
+ else if( TARGETVER_1_29 && name == "f32_runtime" ) {}
+ else if( TARGETVER_1_29 && name == "f64_runtime" ) {}
else {
ERROR(sp, E0000, "Unknown lang item '" << name << "' on impl");
}