summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2015-01-17 11:46:17 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2015-01-17 11:46:17 +0800
commitf99a99e79ff7946dcf7a283c87caf8f0a92c2c03 (patch)
treea97af256ec81dfb68d77d64385b675eaac6026e4 /src/parse
parentba096985c2d2486592037f03e67c500d74292a83 (diff)
downloadmrust-f99a99e79ff7946dcf7a283c87caf8f0a92c2c03.tar.gz
Deserialise working, need to annotate loaded crates with crate ID
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/root.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp
index 66b1d0fb..024860bf 100644
--- a/src/parse/root.cpp
+++ b/src/parse/root.cpp
@@ -745,6 +745,7 @@ void Parse_ModRoot(Preproc& lex, AST::Crate& crate, AST::Module& mod, const ::st
AST::Path prelude_path = AST::Path(AST::Path::TagAbsolute());
prelude_path.append( AST::PathNode("std", {}) );
prelude_path.append( AST::PathNode("prelude", {}) );
+ prelude_path.append( AST::PathNode("v1", {}) );
Parse_Use_Wildcard(prelude_path,
[&mod](AST::Path p, std::string s) {
mod.add_alias(false, p, s);