Rollup merge of #159273 - kn1g78:tidy-handle-large-numeric-sorts, r=clubby789

tidy: document u64 limit for numeric sort keys

The `tidy-alphabetical` checker uses natural sorting for numeric sequences, parsing each sequence as `u64`.

Document this limit so that numeric sequences in marked lists remain within the supported range.
This commit is contained in:
Jonathan Brouwer
2026-07-16 21:01:55 +02:00
committed by GitHub

View File

@@ -9,6 +9,8 @@
//! // tidy-alphabetical-end
//! ```
//!
//! Numeric sequences are parsed as `u64` values, so each sequence must fit within `u64`.
//!
//! Empty lines and lines starting (ignoring spaces) with `//` or `#` (except those starting with
//! `#!`) are considered comments are are sorted together with the next line (but do not affect
//! sorting).