rustc: "extern mod { ... }" should be written "extern { ... }" instead

This commit is contained in:
Patrick Walton
2012-08-30 17:09:04 -07:00
parent c3ac0f8fd9
commit 4846affedb
4 changed files with 25 additions and 8 deletions

View File

@@ -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();

View File

@@ -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
}
}