summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-02-18 18:41:39 +1100
committerJohn Hodge <tpg@mutabah.net>2016-02-18 18:41:39 +1100
commit651ab293f3bfa117dae618edb9a4a9f328e07a91 (patch)
treed8a7ce58aa58a018a1f86aa5fa3f73e57e6c238a /src/parse
parent13075f30738556212ca0ff02d28dab75c268c1fd (diff)
downloadmrust-651ab293f3bfa117dae618edb9a4a9f328e07a91.tar.gz
Random commit
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/root.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp
index f7d82987..5ba66dbc 100644
--- a/src/parse/root.cpp
+++ b/src/parse/root.cpp
@@ -1715,18 +1715,6 @@ AST::Crate Parse_Crate(::std::string mainfile)
// TODO:
}
}
-
- if( crate.m_load_std )
- {
- // Load the standard library (add 'extern crate std;')
- crate.load_extern_crate("std");
- rootmod.add_ext_crate("std", "std");
- rootmod.add_macro_import(crate, "std", "");
- // Prelude imports are handled in Parse_ModRoot
- }
-
- // Include the std if the 'no_std' attribute was absent
- // - First need to load the std macros, then can import the prelude
Parse_ModRoot(lex, crate, rootmod, NULL, mainpath);