docs: only from_days is unstable, and I attributed one error to two constructors #123
No reviewers
Labels
No labels
blocked
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
waiting-on-julian
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jlxq0/matrix-mcp!123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "duration-claim"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Docs only. Corrects a claim in
AGENTS.mdthat I wrote this morning and that is half false.The entry said all eleven
duration_suboptimal_unitsallows suppress advice that does not compile, becauseDuration::from_mins/from_daysare "still unstable on 1.98". Probed separately, one constructor per file, in const context:from_minsfrom_hoursfrom_daysE0658E0658Only
from_daysis unstable, and it is unstable on 1.98 too — so pinning the toolchain forward never retires it.How the error happened, because it is the same class the file is about: my original probe put both constructors in one source file, got a single
E0658, and attributed it to both. An error message read as being about more than it was about — written directly beneath a bullet telling the reader to check a suppression's stated reason before trusting it.Found by the
hevy-mcplead, which hit the same false sentence in its ownsrc/session.rsabove afrom_secs(30 * 60), compiledfrom_mins(30)on 1.93.0 first try, and deleted both of its allows rather than pinning them.What is actually true here.
session_store.rs'sfrom_secs(7 * 24 * 60 * 60)genuinely needs its allow —from_days(7)does not compile on either toolchain. The seven overfrom_secs(60),from_secs(5 * 60),from_secs(15 * 60),from_secs(30 * 60),from_secs(300),from_secs(1800)andfrom_secs(120)are suppressing advice that compiles on the MSRV.Not removing them in this PR. That is a code change wanting a full gate run, and this PR is the file that was wrong about it. Whoever picks that up should compile rather than trust the new bullet — which now says so, and says that this bullet has itself been wrong once.
unused_async_trait_implis unaffected and still needs its allow: it fires on#[tool_handler]-generated code and is what puts the lint floor at 1.98.No code, no tests, no gate impact.