Skip to content

Commit 60db3c4

Browse files
committed
---
yaml --- r: 189431 b: refs/heads/master c: caf6f17 h: refs/heads/master i: 189429: 58ae451 189427: 8ad82bb 189423: 300831c v: v3
1 parent b2ef2ef commit 60db3c4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 298d1578f074c9472fa69f7ac902d8703ac07c7a
2+
refs/heads/master: caf6f17c0f89b3384a25b6d74bb2332c7ec2d2ac
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 270a677d4d698916f5ad103f0afc3c070b8dbeb4
55
refs/heads/try: 649d35e4d830b27806705dc5352c86ab6d6fd1a1

trunk/src/librustc/middle/ty.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5592,8 +5592,7 @@ pub fn predicates<'tcx>(
55925592
pub fn get_attrs<'tcx>(tcx: &'tcx ctxt, did: DefId)
55935593
-> Cow<'tcx, [ast::Attribute]> {
55945594
if is_local(did) {
5595-
let item = tcx.map.expect_item(did.node);
5596-
Cow::Borrowed(&item.attrs)
5595+
Cow::Borrowed(tcx.map.attrs(did.node))
55975596
} else {
55985597
Cow::Owned(csearch::get_item_attrs(&tcx.sess.cstore, did))
55995598
}

0 commit comments

Comments
 (0)