move direct accesses of node to go through as_local_node_id, unless

they are being used as an opaque "position identifier"
This commit is contained in:
Niko Matsakis
2015-09-04 13:52:28 -04:00
parent aa40a1cad0
commit 5600c6282e
57 changed files with 652 additions and 567 deletions

View File

@@ -387,7 +387,7 @@ fn primitive_link(f: &mut fmt::Formatter,
Some(&cnum) => {
let path = &m.paths[&DefId {
krate: cnum,
node: ast::CRATE_NODE_ID,
xxx_node: ast::CRATE_NODE_ID,
}];
let loc = match m.extern_locations[&cnum] {
(_, render::Remote(ref s)) => Some(s.to_string()),