Drop collect_items pass, create decls on demand
This solves a problem with inlined functions that have inner functions.
This commit is contained in:
parent
6f8fe78120
commit
fd465f91a8
15 changed files with 295 additions and 331 deletions
|
|
@ -89,7 +89,7 @@ fn decode_inlined_item(cdata: cstore::crate_metadata,
|
|||
to_id_range: to_id_range};
|
||||
let raw_ii = decode_ast(ast_doc);
|
||||
let ii = renumber_ast(xcx, raw_ii);
|
||||
ast_map::map_decoded_item(dcx.tcx.items, path, ii);
|
||||
ast_map::map_decoded_item(tcx.sess, dcx.tcx.items, path, ii);
|
||||
#debug["Fn named: %s", ii.ident()];
|
||||
decode_side_tables(xcx, ast_doc);
|
||||
#debug["< Decoded inlined fn: %s::%s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue