fn reverse_translate_def_id(cdata: Cmd, did: DefId) -> Option<DefId> {
    for (local, &global) in cdata.cnum_map.borrow().iter_enumerated() {
        if global == did.krate {
            return Some(DefId { krate: local, index: did.index });
        }
    }

    None
}
// Translate a DefId from the current compilation environment to a DefId
// for an external crate.
Translate a DefId from the current compilation environment to a DefId
for an external crate.
Translate a DefId from the current compilation environment to a DefId for an external crate .
fn reverse_translate_def_id(cdata: Cmd, did: DefId) -> Option<DefId> {
    for (local, &global) in cdata.cnum_map.borrow().iter_enumerated() {
        if global == did.krate {
            return Some(DefId { krate: local, index: did.index });
        }
    }
    None
}
fn reverse_translate_def_id ( cdata : Cmd , did : DefId ) -> Option < DefId > { for ( local , & global ) in cdata . cnum_map . borrow ( ) . iter_enumerated ( ) { if global == did . krate { return Some ( DefId { krate : local , index : did . index } ) ; } } None }
Translate a DefId from the current compilation environment to a DefId
for an external crate.
Translate a DefId from the current compilation environment to a DefId for an external crate .
cdata
Cmd
did
DefId
cdata
Cmd
did
DefId