Skip to content

Commit ef66675

Browse files
committed
---
yaml --- r: 189903 b: refs/heads/tmp c: caf6f17 h: refs/heads/master i: 189901: 2bb23b5 189899: 9c127ac 189895: d666cf2 189887: e146798 v: v3
1 parent 3b81352 commit ef66675

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
@@ -34,6 +34,6 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 298d1578f074c9472fa69f7ac902d8703ac07c7a
37+
refs/heads/tmp: caf6f17c0f89b3384a25b6d74bb2332c7ec2d2ac
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 7ce5a21b274ff53e77b561467177bc34c668f95e

branches/tmp/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)