diff options
| author | Luqman Aden <laden@csclub.uwaterloo.ca> | 2014-11-11 20:22:41 -0500 |
|---|---|---|
| committer | Luqman Aden <laden@csclub.uwaterloo.ca> | 2014-11-11 20:24:17 -0500 |
| commit | 27ea11eda820a8bb5b552c4fb37668bcec2df914 (patch) | |
| tree | b17eb72e85f7122d6d23bf14d733621ea64c425b /src/libsyntax | |
| parent | e82f60eb471c4ee092bd4867f6946d271a620e71 (diff) | |
| download | rust-27ea11eda820a8bb5b552c4fb37668bcec2df914.tar.gz rust-27ea11eda820a8bb5b552c4fb37668bcec2df914.zip | |
librustc: Allow linkage attribute on any statics, not just foreign statics.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index c38fea9b3d5..98c49c00205 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -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 { |
