fn type_for_static(db: &dyn HirDatabase, def: StaticId) -> Binders<Ty> {
    let data = db.static_data(def);
    let resolver = def.resolver(db.upcast());
    let ctx = TyLoweringContext::new(db, &resolver);

    Binders::new(0, Ty::from_hir(&ctx, &data.type_ref))
}
/// Build the declared type of a static.
Build the declared type of a static.
Build the declared type of a static .
fn type_for_static(db: &dyn HirDatabase, def: StaticId) -> Binders<Ty> {
    let data = db.static_data(def);
    let resolver = def.resolver(db.upcast());
    let ctx = TyLoweringContext::new(db, &resolver);
    Binders::new(0, Ty::from_hir(&ctx, &data.type_ref))
}
fn type_for_static ( db : & dyn HirDatabase , def : StaticId ) -> Binders < Ty > { let data = db . static_data ( def ) ; let resolver = def . resolver ( db . upcast ( ) ) ; let ctx = TyLoweringContext :: new ( db , & resolver ) ; Binders :: new ( 0 , Ty :: from_hir ( & ctx , & data . type_ref ) ) }
Build the declared type of a static.
Build the declared type of a static .
db
&dyn HirDatabase
def
StaticId