Skip to content

Restore the link to Drop::drop in Chapter 4 - #4885

Open
KishSiva wants to merge 1 commit into
rust-lang:mainfrom
KishSiva:fix/drop-link
Open

KishSiva wants to merge 1 commit into
rust-lang:mainfrom
KishSiva:fix/drop-link

Conversation

@KishSiva

@KishSiva KishSiva commented Nov 1, 2026

Copy link
Copy Markdown

Fixes #4875

PR #4576 temporarily removed the link to Drop::drop from the "Memory and Allocation" section of Chapter 4 because the anchor in the standard library docs had changed from #tymethod.drop to #method.drop. The book is now built against Rust 1.99, whose standard library docs use #method.drop (checked at https://doc.rust-lang.org/std/ops/trait.Drop.html, which has id="method.drop"), so the link resolves again.

This restores the [drop][drop] link and its definition, pointing at ../std/ops/trait.Drop.html#method.drop.

PR rust-lang#4576 temporarily removed the link because the anchor in the standard
library docs changed from `#tymethod.drop` to `#method.drop`. The book now
targets a toolchain whose docs use `#method.drop`, so the link resolves
again.

Fixes rust-lang#4875

This branch has not been deployed

No deployments
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.

Restore the link to Drop::drop in Chapter 4: #method.drop resolves with the current toolchain

1 participant