You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: context.rs
    path of file: ./repos/c2rust/c2rust-refactor/src/analysis/ownership
    
    the code of the file until where you have to start completion: //! The global analysis context.
//!
//!
//! # Functions, variants, and monomorphizations
//!
//! A function can have one or more variants.  If it has one 
    
    pub fn static_ty(&mut self, did: DefId) -> LTy<'lty, 'tcx> {
        let assign = &mut self.static_assign;
        match self.static_summ.entry(did) {
            Entry::Vacant(e) => {
                *e.insert(
                    self.lcx
                        .label(self.tcx.type_of(did), &mut |ty| match ty.kind {
                            TyKind::Ref(_, _, _) | TyKind::RawPtr(_) => {
                                let v = assign.push(ConcretePerm::Move);
                                Some(PermVar::Static(v))
                            }
                            _ => None,
                        }),
                )
            }

            Entry::Occupied(e) => *e.get(),
        }
    }