Add syntax for negative implementations of traits
This commit introduces the syntax for negative implmenetations of traits as shown below: `impl !Trait for Type {}` cc #13231 Part of RFC #3
This commit is contained in:
parent
470118f3e9
commit
8b883ab268
34 changed files with 176 additions and 39 deletions
|
@ -182,6 +182,7 @@ pub struct Trait {
|
|||
|
||||
pub struct Impl {
|
||||
pub unsafety: ast::Unsafety,
|
||||
pub polarity: ast::ImplPolarity,
|
||||
pub generics: ast::Generics,
|
||||
pub trait_: Option<ast::TraitRef>,
|
||||
pub for_: P<ast::Ty>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue