max / quasi
- Co-Authored-By
- Claude Opus 5 (1M context) <noreply@anthropic.com>
1 file changed,
+7 insertions,
-3 deletions
| @@ -131,9 +131,13 @@ | |||
| 131 | 131 | ||
| 132 | 132 | #[test] | |
| 133 | 133 | fn the_exhaustiveness_list_holds_one_of_every_member() { | |
| 134 | - | // A count rather than a comment. `Node` has no `#[non_exhaustive]` and | |
| 135 | - | // cannot be iterated, so nothing but this stops the list above going stale | |
| 136 | - | // the way it did through two releases. | |
| 134 | + | // A count rather than a comment. `Node` cannot be iterated, so nothing but | |
| 135 | + | // this stops the list above going stale the way it did through two releases. | |
| 136 | + | // | |
| 137 | + | // `Node` took `#[non_exhaustive]` in 0.10.0, which makes this the only | |
| 138 | + | // guard rather than the second one: a member added upstream now lands on | |
| 139 | + | // `draw`'s catch-all and compiles, so the count is what says the list has | |
| 140 | + | // not learned it yet. | |
| 137 | 141 | assert_eq!( | |
| 138 | 142 | one_of_everything().len(), | |
| 139 | 143 | 19, |