(&self)
| 534 | } |
| 535 | |
| 536 | fn get_generics(&self) -> Generics { |
| 537 | // NoneOr/AutoOr/NormalOr might maybe_unsized for the internal to the type, but shouldn't express their own generics |
| 538 | if self.maybe_unsized() |
| 539 | && !matches!(self, Def::NoneOr(_) | Def::AutoOr(_) | Def::AutoNoneOr(_) | Def::NormalOr(_)) |
| 540 | { |
| 541 | parse_quote!(<'a>) |
| 542 | } else { |
| 543 | Default::default() |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | fn rewrite_options_type(&self, replacement: &TokenStream) -> TokenStream { |
| 548 | match self { |
no test coverage detected