Skip to main content

max / quasi

Correct a comment that still said Node was not non_exhaustive Node took the attribute in 0.10.0. The count test it annotates is now the only guard rather than the second one, since a member added upstream lands on draw's catch-all and compiles.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-16 18:44 UTC
Signed with PGP, not checked
Commit: d565c8d99e595508a2ec1294984252b380ffe5f8
Parent: 41818aa
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,