File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
trunk/src/librustc/middle Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 298d1578f074c9472fa69f7ac902d8703ac07c7a
2
+ refs/heads/master: caf6f17c0f89b3384a25b6d74bb2332c7ec2d2ac
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 270a677d4d698916f5ad103f0afc3c070b8dbeb4
5
5
refs/heads/try: 649d35e4d830b27806705dc5352c86ab6d6fd1a1
Original file line number Diff line number Diff line change @@ -5592,8 +5592,7 @@ pub fn predicates<'tcx>(
5592
5592
pub fn get_attrs < ' tcx > ( tcx : & ' tcx ctxt , did : DefId )
5593
5593
-> Cow < ' tcx , [ ast:: Attribute ] > {
5594
5594
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 ) )
5597
5596
} else {
5598
5597
Cow :: Owned ( csearch:: get_item_attrs ( & tcx. sess . cstore , did) )
5599
5598
}
You can’t perform that action at this time.
0 commit comments