Skip to content

Commit 513a09a

Browse files
committed
---
yaml --- r: 190457 b: refs/heads/snap-stage3 c: caf6f17 h: refs/heads/master i: 190455: 5585672 v: v3
1 parent 1598cf6 commit 513a09a

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,7 +1,7 @@
11
---
22
refs/heads/master: 857ac28867722111249b5c3ef68e32499bd11ea0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 298d1578f074c9472fa69f7ac902d8703ac07c7a
4+
refs/heads/snap-stage3: caf6f17c0f89b3384a25b6d74bb2332c7ec2d2ac
55
refs/heads/try: 1c28ab65017d74fc13d003f7c7a73d1a48e5406f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)