librustc: Allow linkage attribute on any statics, not just foreign statics.

This commit is contained in:
Luqman Aden 2014-11-11 20:22:41 -05:00
parent e82f60eb47
commit 27ea11eda8
3 changed files with 50 additions and 28 deletions

View file

@ -181,6 +181,10 @@ impl<'a, 'v> Visitor<'v> for Context<'a> {
"`#[thread_local]` is an experimental feature, and does not \
currently handle destructors. There is no corresponding \
`#[task_local]` mapping to the task model");
} else if attr.name().equiv(&("linkage")) {
self.gate_feature("linkage", i.span,
"the `linkage` attribute is experimental \
and not portable across platforms")
}
}
match i.node {