librustc: Allow linkage attribute on any statics, not just foreign statics.
This commit is contained in:
parent
e82f60eb47
commit
27ea11eda8
3 changed files with 50 additions and 28 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue