Skip to content

Commit

Permalink
Feature gate defaulted traits
Browse files Browse the repository at this point in the history
  • Loading branch information
flaper87 committed Mar 20, 2015
1 parent 9ae144f commit 01d2429
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libsyntax/feature_gate.rs
Expand Up @@ -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 => {
Expand Down

0 comments on commit 01d2429

Please sign in to comment.