Auto merge of #30830 - arcnmx:static-extern, r=alexcrichton

See #29676

r? @alexcrichton
This commit is contained in:
bors
2016-02-12 02:16:13 +00:00
6 changed files with 42 additions and 43 deletions

View File

@@ -316,6 +316,11 @@ pub fn find_export_name_attr(diag: &Handler, attrs: &[Attribute]) -> Option<Inte
})
}
pub fn contains_extern_indicator(diag: &Handler, attrs: &[Attribute]) -> bool {
contains_name(attrs, "no_mangle") ||
find_export_name_attr(diag, attrs).is_some()
}
#[derive(Copy, Clone, PartialEq)]
pub enum InlineAttr {
None,