tidy: document u64 limit for numeric sort keys#159273
Conversation
|
r? @clubby789 rustbot has assigned @clubby789. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Why the switch to ASCII? |
|
how often in practice this happens? |
this does not currently happen in practice and is unlikely with the existing use cases. This PR is defensive hardening for an undocumented u64 limit in the generic comparator, rather than a fix for an observed failure. |
|
let's just document u64 limit then |
Done. Thank you! |
|
Please update the PR description. In future, please don't use AI to generate PR descriptions |
|
@bors r- It should have the PR updated for its description first, before approval, because when a rollup is made, that will take the PR description at that moment, not whatever edits are landed. That PR description then becomes a commit message. |
|
This pull request was unapproved. |
|
done. |
|
@bors r+ rollup |
…orts, 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. Tests: - `cargo test --offline --manifest-path src/tools/tidy/Cargo.toml` - `x test tidy`
…uwer Rollup of 18 pull requests Successful merges: - #150679 (dirfd file operations (2/4)) - #158758 (Rename `lazy_type_alias` feature gate to `checked_type_aliases` ) - #159177 (Explicitly materialize debuginfo tests for all debuggers) - #159392 (Update Rust crate rand to v0.9.3 [SECURITY]) - #159393 (Update Rust crate rkyv to v0.8.16 [SECURITY]) - #159394 (Update Rust crate tar to v0.4.46 [SECURITY]) - #159395 (Update Rust crate tracing-subscriber [SECURITY]) - #159193 (Port compiletest's CLI to clap) - #158992 (Shorten types more when only interesting part is lifetimes) - #159226 (Track extra_lifetime_params_map per-owner) - #159273 (tidy: document u64 limit for numeric sort keys) - #159322 (Fix safety doc in intrinsics::simd) - #159329 (Fix the stale metrics directory warning) - #159357 (Add regression tests for two fixed issues) - #159360 (Remove FIXMEs referencing #44232) - #159375 (make a couple codegen-llvm tests compatible with 2021 edition) - #159381 (emit `(lldb)` prefix to make commands more distinct) - #159396 (Update actions/checkout action to v7)
The
tidy-alphabeticalchecker uses natural sorting for numeric sequences, parsing each sequence asu64.Document this limit so that numeric sequences in marked lists remain within the supported range.