Add hir::HeaderSafety to make follow up commits simpler
This commit is contained in:
parent
e491caec14
commit
a907c56a77
23 changed files with 101 additions and 40 deletions
|
@ -30,6 +30,8 @@ pub struct CodegenFnAttrs {
|
|||
/// features (only enabled features are supported right now).
|
||||
/// Implied target features have already been applied.
|
||||
pub target_features: Vec<TargetFeature>,
|
||||
/// Whether the function was declared safe, but has target features
|
||||
pub safe_target_features: bool,
|
||||
/// The `#[linkage = "..."]` attribute on Rust-defined items and the value we found.
|
||||
pub linkage: Option<Linkage>,
|
||||
/// The `#[linkage = "..."]` attribute on foreign items and the value we found.
|
||||
|
@ -150,6 +152,7 @@ impl CodegenFnAttrs {
|
|||
link_name: None,
|
||||
link_ordinal: None,
|
||||
target_features: vec![],
|
||||
safe_target_features: false,
|
||||
linkage: None,
|
||||
import_linkage: None,
|
||||
link_section: None,
|
||||
|
|
|
@ -222,6 +222,7 @@ pub struct DelegationFnSig {
|
|||
pub param_count: usize,
|
||||
pub has_self: bool,
|
||||
pub c_variadic: bool,
|
||||
pub target_feature: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue