File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: cfaa0f4b91b27abfb3b4fba4d0bb31a5e3da7c89
2
+ refs/heads/master: 08b49a5d8fe975bcd8a0526526eb9692f3f3be4c
Original file line number Diff line number Diff line change @@ -2702,8 +2702,13 @@ fn tag_variants(&ctxt cx, &ast::def_id id) -> vec[variant_info] {
2702
2702
if ( cx. sess. get_targ_crate_num( ) != id. _0) {
2703
2703
ret creader:: get_tag_variants( cx, id) ;
2704
2704
}
2705
- assert ( cx. items. contains_key( id. _1) ) ;
2706
- alt ( cx. items. get( id. _1) ) {
2705
+ auto item = alt ( cx. items. find( id. _1) ) {
2706
+ case ( some( ?i) ) { i }
2707
+ case ( none) {
2708
+ cx. sess. bug( "expected to find cached node_item")
2709
+ }
2710
+ } ;
2711
+ alt ( item) {
2707
2712
case ( ast_map:: node_item( ?item) ) {
2708
2713
alt ( item. node) {
2709
2714
case ( ast:: item_tag( ?variants, _) ) {
You can’t perform that action at this time.
0 commit comments