]> git.lizzy.rs Git - rust.git/blob - src/librustc_codegen_ssa/traits/statics.rs
Rollup merge of #65294 - varkor:lint-inline-prototype, r=matthewjasper
[rust.git] / src / librustc_codegen_ssa / traits / statics.rs
1 use super::BackendTypes;
2 use rustc::hir::def_id::DefId;
3 use rustc::ty::layout::Align;
4
5 pub trait StaticMethods: BackendTypes {
6     fn static_addr_of(&self, cv: Self::Value, align: Align, kind: Option<&str>) -> Self::Value;
7     fn codegen_static(&self, def_id: DefId, is_mutable: bool);
8 }
9
10 pub trait StaticBuilderMethods: BackendTypes {
11     fn get_static(&mut self, def_id: DefId) -> Self::Value;
12 }