diff options
| author | bors <bors@rust-lang.org> | 2015-01-12 04:45:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-12 04:45:18 +0000 |
| commit | 0aec4db1c09574da2f30e3844de6d252d79d4939 (patch) | |
| tree | 64ef8983eb848612559f373ab7069e033672745f /src/libsyntax | |
| parent | 15a41380c14e94052332360b104ec1651f97297b (diff) | |
| parent | 02d0a8bbcf0a64339e4279c4ddb4841189ba5069 (diff) | |
| download | rust-0aec4db1c09574da2f30e3844de6d252d79d4939.tar.gz rust-0aec4db1c09574da2f30e3844de6d252d79d4939.zip | |
auto merge of #20889 : Manishearth/rust/trait-error, r=nikomatsakis
fixes #20783 r? @nikomatsakis
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 8175c0a9eec..8929bbe0232 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -71,6 +71,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[ ("visible_private_types", Active), ("slicing_syntax", Active), ("box_syntax", Active), + ("on_unimplemented", Active), ("if_let", Accepted), ("while_let", Accepted), @@ -249,6 +250,10 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> { self.gate_feature("linkage", i.span, "the `linkage` attribute is experimental \ and not portable across platforms") + } else if attr.name() == "rustc_on_unimplemented" { + self.gate_feature("on_unimplemented", i.span, + "the `#[rustc_on_unimplemented]` attribute \ + is an experimental feature") } } match i.node { |
