Skip to content

chore(listings): remove orphan ch21 listings and renumber final-code (#4644)#4787

Open
Dodothereal wants to merge 1 commit into
rust-lang:mainfrom
Dodothereal:cleanup/issue-4644-orphan-ch21-listings
Open

chore(listings): remove orphan ch21 listings and renumber final-code (#4644)#4787
Dodothereal wants to merge 1 commit into
rust-lang:mainfrom
Dodothereal:cleanup/issue-4644-orphan-ch21-listings

Conversation

@Dodothereal

Copy link
Copy Markdown

Closes #4644

Summary

The two listings no-listing-05-fix-worker-new and
no-listing-06-fix-threadpool-drop under listings/ch21-web-server/
are no longer referenced from src/ch21-03-graceful-shutdown-and-cleanup.md
and predate the recent tech-review revisions — they carry outdated
Worker::new and Drop impl content.

This PR:

  • Deletes listings/ch21-web-server/no-listing-05-fix-worker-new/.
  • Deletes listings/ch21-web-server/no-listing-06-fix-threadpool-drop/.
  • Renames listings/ch21-web-server/no-listing-07-final-code/ to
    listings/ch21-web-server/no-listing-05-final-code/ so the
    remaining no-listing series stays contiguous (01..02..03..04..05).
  • Updates the two rustdoc_include references in
    src/ch21-03-graceful-shutdown-and-cleanup.md to the new path.

The chapter text itself is unchanged. Only listing book-keeping is
touched.

Test plan

  • mdbook build should recompile the chapter without warnings;
    rustdoc_include still finds the renamed final-code directory.
  • A spot-check that no other source file references
    no-listing-05-fix-worker-new or no-listing-06-fix-threadpool-drop
    (greps return nothing outside the listings/ tree).

AI assistance

Drafted with the help of Claude; reviewed line by line before
submission. rust-lang/book has no formal AI policy, so disclosure is
offered.

…ust-lang#4644)

The two no-listing-05-fix-worker-new and no-listing-06-fix-threadpool-drop
directories under listings/ch21-web-server/ are not referenced from
src/ch21-03-graceful-shutdown-and-cleanup.md anymore (the chapter only
embeds 21-22 .. 21-25, no-listing-04-update-drop-definition and
no-listing-07-final-code from the no-listing series); they predate the
recent tech-review revisions and carry outdated Worker::new / Drop impl
content.

This commit:
- Deletes the two unreferenced listing trees outright.
- Renames the still-used no-listing-07-final-code to
  no-listing-05-final-code so the remaining no-listing series stays
  contiguous (01..02..03..04..05).
- Updates the two rustdoc_include references in
  src/ch21-03-graceful-shutdown-and-cleanup.md accordingly.

Closes rust-lang#4644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up unused listings in Ch 12

1 participant