a-mir-formality icon indicating copy to clipboard operation
a-mir-formality copied to clipboard

Add support for auto traits

Open nikomatsakis opened this issue 3 years ago • 0 comments

We need to support auto traits:

  • [ ] Extract trait declarations with an (optional) auto qualifier; perhaps in the form of a "flag list" that leaves room for other flags, like marker, to be added in the future.
  • [ ] Add negative impls (so that people can "opt out" from auto traits).
  • [ ] Extend decl-clauses-for-predicate so that, if we are proving has-impl on an auto-trait for an ADT, we look to see if there is any impl at all (pos or neg) for that trait defined on that struct. If not, we add a default impl based on the contents of the struct.

nikomatsakis avatar May 17 '22 22:05 nikomatsakis