Skip to content

Commit f5cc929

Browse files
committed
---
yaml --- r: 105040 b: refs/heads/snap-stage3 c: 6a7fd8c h: refs/heads/master v: v3
1 parent 2337d62 commit f5cc929

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 62f1d68439dcfd509eaca29887afa97f22938373
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0dbb909bf7cf557e46748ddcf3cdea916f2734c9
4+
refs/heads/snap-stage3: 6a7fd8cfa59506d70c43b93256c7eeeb79133ca5
55
refs/heads/try: db814977d07bd798feb24f6b74c00800ef458a13
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustdoc/clean.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,16 +1229,15 @@ fn resolve_type(path: Path, tpbs: Option<Vec<TyParamBound> >,
12291229
core::NotTyped(_) => return Bool
12301230
};
12311231
debug!("searching for {:?} in defmap", id);
1232-
let def_map = tycx.def_map.borrow();
1233-
let d = match def_map.get().find(&id) {
1234-
Some(k) => k,
1232+
let d = match tycx.def_map.borrow().find(&id) {
1233+
Some(&k) => k,
12351234
None => {
12361235
debug!("could not find {:?} in defmap (`{}`)", id, tycx.map.node_to_str(id));
12371236
fail!("Unexpected failure: unresolved id not in defmap (this is a bug!)")
12381237
}
12391238
};
12401239

1241-
let (def_id, kind) = match *d {
1240+
let (def_id, kind) = match d {
12421241
ast::DefFn(i, _) => (i, TypeFunction),
12431242
ast::DefSelfTy(i) => return Self(i),
12441243
ast::DefTy(i) => (i, TypeEnum),
@@ -1285,8 +1284,7 @@ fn resolve_def(id: ast::NodeId) -> Option<ast::DefId> {
12851284
let cx = local_data::get(super::ctxtkey, |x| *x.unwrap());
12861285
match cx.maybe_typed {
12871286
core::Typed(ref tcx) => {
1288-
let def_map = tcx.def_map.borrow();
1289-
def_map.get().find(&id).map(|&d| ast_util::def_id_of_def(d))
1287+
tcx.def_map.borrow().find(&id).map(|&d| ast_util::def_id_of_def(d))
12901288
}
12911289
core::NotTyped(_) => None
12921290
}

branches/snap-stage3/src/librustdoc/visit_ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl<'a> RustdocVisitor<'a> {
186186
core::Typed(ref tcx) => tcx,
187187
core::NotTyped(_) => return false
188188
};
189-
let def = ast_util::def_id_of_def(*tcx.def_map.borrow().get().get(&id));
189+
let def = ast_util::def_id_of_def(*tcx.def_map.borrow().get(&id));
190190
if !ast_util::is_local(def) { return false }
191191
let analysis = match self.analysis {
192192
Some(analysis) => analysis, None => return false

0 commit comments

Comments
 (0)