rustc: "extern mod { ... }" should be written "extern { ... }" instead
This commit is contained in:
@@ -823,7 +823,6 @@ fn encode_info_for_foreign_item(ecx: @encode_ctxt, ebml_w: ebml::Writer,
|
||||
encode_type(ecx, ebml_w, node_id_to_type(ecx.tcx, nitem.id));
|
||||
encode_symbol(ecx, ebml_w, nitem.id);
|
||||
encode_path(ecx, ebml_w, path, ast_map::path_name(nitem.ident));
|
||||
ebml_w.end_tag();
|
||||
}
|
||||
}
|
||||
ebml_w.end_tag();
|
||||
|
||||
@@ -5528,7 +5528,6 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
|
||||
let g = do str::as_c_str(*ident) |buf| {
|
||||
llvm::LLVMAddGlobal(ccx.llmod, type_of(ccx, typ), buf)
|
||||
};
|
||||
ccx.item_symbols.insert(ni.id, copy *ident);
|
||||
g
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user