Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature gate FFI imports of LLVM intrinsics #20334

Merged
merged 1 commit into from
Jan 2, 2015
Merged

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
Member

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