File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
trunk/src/rustc/middle/trans Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 1228c55ef0ec41215054c5db1693b84fbb58674d
2
+ refs/heads/master: 481267299d1c5a1ddcacf68ce1ce3f3fb48c0cd5
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -5456,17 +5456,12 @@ fn crate_ctxt_to_encode_parms(cx: @crate_ctxt)
5456
5456
5457
5457
fn impl_map( cx: @crate_ctxt,
5458
5458
id: ast:: node_id) -> [ ( ast:: ident, ast:: def_id) ] /~ {
5459
- alt * cx. maps. impl_map. get( id) {
5460
- list:: cons( impls, @list:: nil) {
5461
- ( * impls) . map { |i|
5462
- ( i. ident, i. did)
5463
- }
5464
- }
5465
- _ {
5466
- cx. sess. bug( #fmt( "encode_info_for_mod: empty impl_map \
5467
- entry for %?", id) ) ;
5468
- }
5459
+ let mut result = [ ] /~;
5460
+ for list:: each( cx. maps. impl_map. get( id) ) {
5461
+ |impls|
5462
+ result += ( * impls) . map( { |i| ( i. ident, i. did) } ) ;
5469
5463
}
5464
+ ret result;
5470
5465
}
5471
5466
}
5472
5467
You can’t perform that action at this time.
0 commit comments