fn build_reduced_graph_for_foreign_item(&mut self, item: &ForeignItem) {
        let (res, ns) = match item.kind {
            ForeignItemKind::Fn(..) => {
                (Res::Def(DefKind::Fn, self.r.definitions.local_def_id(item.id)), ValueNS)
            }
            ForeignItemKind::Static(..) => {
                (Res::Def(DefKind::Static, self.r.definitions.local_def_id(item.id)), ValueNS)
            }
            ForeignItemKind::Ty => {
                (Res::Def(DefKind::ForeignTy, self.r.definitions.local_def_id(item.id)), TypeNS)
            }
            ForeignItemKind::Macro(_) => unreachable!(),
        };
        let parent = self.parent_scope.module;
        let expansion = self.parent_scope.expansion;
        let vis = self.resolve_visibility(&item.vis);
        self.r.define(parent, item.ident, ns, (res, vis, item.span, expansion));
    }
/// Constructs the reduced graph for one foreign item.
Constructs the reduced graph for one foreign item.
Constructs the reduced graph for one foreign item .
fn build_reduced_graph_for_foreign_item(&mut self, item: &ForeignItem) {
        let (res, ns) = match item.kind {
            ForeignItemKind::Fn(..) => {
                (Res::Def(DefKind::Fn, self.r.definitions.local_def_id(item.id)), ValueNS)
            }
            ForeignItemKind::Static(..) => {
                (Res::Def(DefKind::Static, self.r.definitions.local_def_id(item.id)), ValueNS)
            }
            ForeignItemKind::Ty => {
                (Res::Def(DefKind::ForeignTy, self.r.definitions.local_def_id(item.id)), TypeNS)
            }
            ForeignItemKind::Macro(_) => unreachable!(),
        };
        let parent = self.parent_scope.module;
        let expansion = self.parent_scope.expansion;
        let vis = self.resolve_visibility(&item.vis);
        self.r.define(parent, item.ident, ns, (res, vis, item.span, expansion));
    }
fn build_reduced_graph_for_foreign_item ( & mut self , item : & ForeignItem ) { let ( res , ns ) = match item . kind { ForeignItemKind :: Fn ( .. ) => { ( Res :: Def ( DefKind :: Fn , self . r . definitions . local_def_id ( item . id ) ) , ValueNS ) } ForeignItemKind :: Static ( .. ) => { ( Res :: Def ( DefKind :: Static , self . r . definitions . local_def_id ( item . id ) ) , ValueNS ) } ForeignItemKind :: Ty => { ( Res :: Def ( DefKind :: ForeignTy , self . r . definitions . local_def_id ( item . id ) ) , TypeNS ) } ForeignItemKind :: Macro ( _ ) => unreachable ! ( ) , } ; let parent = self . parent_scope . module ; let expansion = self . parent_scope . expansion ; let vis = self . resolve_visibility ( & item . vis ) ; self . r . define ( parent , item . ident , ns , ( res , vis , item . span , expansion ) ) ; }
Constructs the reduced graph for one foreign item.
Constructs the reduced graph for one foreign item .
&mut self
item
&ForeignItem