pub fn item_mir(self, did: DefId) -> Ref<'gcx, Mir<'gcx>> {
        lookup_locally_or_in_crate_store("mir_map", did, &self.mir_map, || {
            let mir = self.sess.cstore.get_item_mir(self.global_tcx(), did);
            let mir = self.alloc_mir(mir);

            // Perma-borrow MIR from extern crates to prevent mutation.
            mem::forget(mir.borrow());

            mir
        }).borrow()
    }
/// Given the did of an item, returns its MIR, borrowed immutably.
Given the did of an item, returns its MIR, borrowed immutably.
Given the did of an item returns its MIR borrowed immutably .
pub fn item_mir(self, did: DefId) -> Ref<'gcx, Mir<'gcx>> {
        lookup_locally_or_in_crate_store("mir_map", did, &self.mir_map, || {
            let mir = self.sess.cstore.get_item_mir(self.global_tcx(), did);
            let mir = self.alloc_mir(mir);
            // Perma-borrow MIR from extern crates to prevent mutation.
            mem::forget(mir.borrow());
            mir
        }).borrow()
    }
pub fn item_mir ( self , did : DefId ) -> Ref < ' gcx , Mir < ' gcx > > { lookup_locally_or_in_crate_store ( " " , did , & self . mir_map , | | { let mir = self . sess . cstore . get_item_mir ( self . global_tcx ( ) , did ) ; let mir = self . alloc_mir ( mir ) ; // Perma-borrow MIR from extern crates to prevent mutation. mem :: forget ( mir . borrow ( ) ) ; mir } ) . borrow ( ) }
Given the did of an item, returns its MIR, borrowed immutably.
Given the did of an item returns its MIR borrowed immutably .
self
did
DefId