Fallout in stdlib, rustdoc, rustc, etc. For most maps, converted uses of
`[]` on maps to `get` in rustc, since stage0 and stage1+ disagree about how to use `[]`.
This commit is contained in:
@@ -290,7 +290,7 @@ fn resolved_path(w: &mut fmt::Formatter, did: ast::DefId, p: &clean::Path,
|
||||
if ast_util::is_local(did) || cache.inlined.contains(&did) {
|
||||
Some(repeat("../").take(loc.len()).collect::<String>())
|
||||
} else {
|
||||
match cache.extern_locations[did.krate] {
|
||||
match cache.extern_locations[&did.krate] {
|
||||
render::Remote(ref s) => Some(s.to_string()),
|
||||
render::Local => {
|
||||
Some(repeat("../").take(loc.len()).collect::<String>())
|
||||
@@ -404,11 +404,11 @@ fn primitive_link(f: &mut fmt::Formatter,
|
||||
needs_termination = true;
|
||||
}
|
||||
Some(&cnum) => {
|
||||
let path = &m.paths[ast::DefId {
|
||||
let path = &m.paths[&ast::DefId {
|
||||
krate: cnum,
|
||||
node: ast::CRATE_NODE_ID,
|
||||
}];
|
||||
let loc = match m.extern_locations[cnum] {
|
||||
let loc = match m.extern_locations[&cnum] {
|
||||
render::Remote(ref s) => Some(s.to_string()),
|
||||
render::Local => {
|
||||
let len = CURRENT_LOCATION_KEY.with(|s| s.borrow().len());
|
||||
|
||||
Reference in New Issue
Block a user