Remove deprecated io.read-line+ builtin #456
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq!456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dooc2/remove-io-read-line-plus"
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?
Covers full end-to-end removal:
Closes #455
Scope is correct and complete. All 9 callsites that exist on
mainare removed, andgit grepon the PR branch finds zero stragglers across.rs,.md,.psr, and.toml— so the end-to-end claim in the description holds.Bug — orphaned doc comment block in
crates/runtime/src/io.rs. The function-level docstring forpatch_seq_read_line_pluswas only partially deleted. Lines 166–179 of the post-PR file are leftover doc lines from the removed function, but they are now syntactically attached toREAD_N_MAX_BYTESon line 183. The result reads:Note the broken sentence at lines 179–180:
Windows-styleflows directly intoMaximum bytes allowed for a single read_n call. This will show up incargo docoutput for the constant. Fix is to delete lines 166–179 (everything from/// Read a line from stdin...through/// Line endings are normalized to \n regardless of platform. Windows-style), soREAD_N_MAX_BYTESkeeps only its own three-line doc.Nice catch in the same file. Line 210's doc was correctly updated from
Like io.read-line+→Like io.read-line. Good.Fixed — removed the 14-line orphaned doc comment block from the deleted
patch_seq_read_line_plusfunction.READ_N_MAX_BYTESnow has only its own 3-line doc. Build + full test suite (1,083 tests) still passes.#458
Pull request closed