Skip to content

Commit ec0c029

Browse files
committed
Split EBML module into a reader and a writer module
Minor refactoring, no review. Closes #2739
1 parent 236fd32 commit ec0c029

File tree

6 files changed

+660
-642
lines changed

6 files changed

+660
-642
lines changed

src/librustc/metadata/csearch.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Searching for information from the cstore
22

33
use std::ebml;
4+
use Reader = std::ebml::Reader;
45
use syntax::ast;
56
use syntax::ast_util;
67
use syntax::ast_map;
@@ -181,7 +182,7 @@ fn get_field_type(tcx: ty::ctxt, class_id: ast::def_id,
181182
def: ast::def_id) -> ty::ty_param_bounds_and_ty {
182183
let cstore = tcx.cstore;
183184
let cdata = cstore::get_crate_data(cstore, class_id.crate);
184-
let all_items = ebml::get_doc(ebml::Doc(cdata.data), tag_items);
185+
let all_items = Reader::get_doc(Reader::Doc(cdata.data), tag_items);
185186
debug!("Looking up %?", class_id);
186187
let class_doc = expect(tcx.diag,
187188
decoder::maybe_find_item(class_id.node, all_items),

0 commit comments

Comments
 (0)