From 01d24297eb6fe16abdf7869c60519650e3490faf Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Wed, 11 Mar 2015 01:51:50 +0100 Subject: Feature gate defaulted traits --- src/libsyntax/feature_gate.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libsyntax') 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 => { -- cgit 1.4.1-3-g733a5