Skip to content

Commit 8e9c8b7

Browse files
committed
---
yaml --- r: 176039 b: refs/heads/try c: 33fd10d h: refs/heads/master i: 176037: 5a66a19 176035: 29eeaaf 176031: a6b5d8a v: v3
1 parent 96f86a1 commit 8e9c8b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: a530cc9706324ad44dba464d541a807eb5afdb08
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 777435990e0e91df6b72ce80c9b6fa485eeb5daa
5-
refs/heads/try: 32690b586d6bbe2541ec94adbdc7c226978332c5
5+
refs/heads/try: 33fd10d5e0bac969b522b0a9b1bcc1518d1554b2
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_trans/save/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
278278
// The qualname for a method is the trait name or name of the struct in an impl in
279279
// which the method is declared in followed by the method's name.
280280
let mut qualname = match ty::impl_of_method(&self.analysis.ty_cx,
281-
ast_util::local_def(method.id)) {
281+
ast_util::local_def(method.id)) {
282282
Some(impl_id) => match self.analysis.ty_cx.map.get(impl_id.node) {
283283
NodeItem(item) => {
284284
scope_id = item.id;
@@ -349,7 +349,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
349349
.and_then(|def_id| {
350350
if match def_id {
351351
ty::MethodTraitItemId(def_id) => {
352-
method.id != 0 && def_id.node == 0
352+
def_id.node != 0 && def_id != ast_util::local_def(method.id)
353353
}
354354
ty::TypeTraitItemId(_) => false,
355355
} {

0 commit comments

Comments
 (0)