diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-03-11 01:51:50 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-03-20 16:43:11 +0100 |
| commit | 01d24297eb6fe16abdf7869c60519650e3490faf (patch) | |
| tree | 93832fb5510369709b5b2551618b4b9a78813a79 | |
| parent | 9ae144f05526ce8963af265d3b33f6c565c85e43 (diff) | |
| download | rust-01d24297eb6fe16abdf7869c60519650e3490faf.tar.gz rust-01d24297eb6fe16abdf7869c60519650e3490faf.zip | |
Feature gate defaulted traits
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 0a9980c8925..f5e891a9dd6 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -563,6 +563,13 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> { } } + ast::ItemDefaultImpl(..) => { + self.gate_feature("optin_builtin_traits", + i.span, + "default trait implementations are experimental \ + and possibly buggy"); + } + ast::ItemImpl(_, polarity, _, _, _, _) => { match polarity { ast::ImplPolarity::Negative => { |
