pub fn create_fn_alloc(&mut self, instance: Instance<'tcx>) -> AllocId {
        let id = self.reserve();
        self.id_to_kind.insert(id, AllocKind::Function(instance));
        id
    }
/// Functions cannot be identified by pointers, as asm-equal functions can get deduplicated
/// by the linker and functions can be duplicated across crates.
/// We thus generate a new `AllocId` for every mention of a function. This means that
/// `main as fn() == main as fn()` is false, while `let x = main as fn(); x == x` is true.
Functions cannot be identified by pointers, as asm-equal functions can get deduplicated
by the linker and functions can be duplicated across crates.
We thus generate a new `AllocId` for every mention of a function.
Functions cannot be identified by pointers as asm - equal functions can get deduplicated by the linker and functions can be duplicated across crates . We thus generate a new ` AllocId ` for every mention of a function .
pub fn create_fn_alloc(&mut self, instance: Instance<'tcx>) -> AllocId {
        let id = self.reserve();
        self.id_to_kind.insert(id, AllocKind::Function(instance));
        id
    }
pub fn create_fn_alloc ( & mut self , instance : Instance < ' tcx > ) -> AllocId { let id = self . reserve ( ) ; self . id_to_kind . insert ( id , AllocKind :: Function ( instance ) ) ; id }
Functions cannot be identified by pointers, as asm-equal functions can get deduplicated
by the linker and functions can be duplicated across crates.
Functions cannot be identified by pointers as asm - equal functions can get deduplicated by the linker and functions can be duplicated across crates .
&mut self
instance
Instance<'tcx>
&mut self
instance
Instance<'tcx>