Skip to content

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Dec 30, 2014

Fixes #20313

r? @huonw

@@ -292,6 +293,19 @@ impl<'a, 'v> Visitor<'v> for Context<'a> {
"the `linkage` attribute is experimental \
and not portable across platforms")
}

let links_to_llvm = i.attrs.iter().filter(|attr| {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be trimmed to attr::first_attr_value_str_by_name(i.attrs[], "link_name").map_or(false, ...).

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 2, 2015
@bors bors merged commit f1b6401 into rust-lang:master Jan 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature gate FFI imports of LLVM intrinsics
3 participants