提交 01d24297 编写于 作者: F Flavio Percoco

Feature gate defaulted traits

上级 9ae144f0
......@@ -563,6 +563,13 @@ fn visit_item(&mut self, i: &ast::Item) {
}
}
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 => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册