Feature gate defaulted traits
This commit is contained in:
parent
9ae144f055
commit
01d24297eb
1 changed files with 7 additions and 0 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue