Use iteration protocol for ebml, use vec::view in more places (issue #2880)
This commit is contained in:
parent
dbbaa50290
commit
65beca4e01
7 changed files with 51 additions and 58 deletions
|
|
@ -841,7 +841,7 @@ fn decode_side_tables(xcx: extended_decode_ctxt,
|
|||
ast_doc: ebml::doc) {
|
||||
let dcx = xcx.dcx;
|
||||
let tbl_doc = ast_doc[c::tag_table];
|
||||
do ebml::docs(tbl_doc) |tag, entry_doc| {
|
||||
for ebml::docs(tbl_doc) |tag, entry_doc| {
|
||||
let id0 = entry_doc[c::tag_table_id].as_int();
|
||||
let id = xcx.tr_id(id0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue