Skip to content

Fix two broken links in the docs - #945

Merged
antoyo merged 1 commit into
rust-lang:masterfrom
kutsibalci:fix-broken-doc-links
Aug 5, 2026
Merged

Fix two broken links in the docs#945
antoyo merged 1 commit into
rust-lang:masterfrom
kutsibalci:fix-broken-doc-links

Conversation

@kutsibalci

Copy link
Copy Markdown
Contributor

Two markdown links in the docs point at paths that do not exist. These are the only two broken relative links in the repository.

doc/tips.md

-generate it in [gimple.md](./doc/gimple.md).
+generate it in [gimple.md](./gimple.md).

tips.md already lives in doc/, so ./doc/gimple.md resolves to doc/doc/gimple.md. The file it wants is right next to it.

Readme.md

- * [Debugging GCC LTO](./doc/debugging-gcc-lto.md)
+ * [Debugging](./doc/debugging.md)

doc/debugging-gcc-lto.md was added in 79316d4 ("Split Readme even further") and removed again in 79a6e4e ("Add documentation for stdarch tests"), which introduced the broader doc/debugging.md in its place. The Readme entry was not updated with it.

The GCC LTO content was not lost — it is still the first section of doc/debugging.md (## How to debug GCC LTO). Since that file now covers more than LTO, the entry is renamed rather than pointed at an anchor, which also matches CONTRIBUTING.md:124, where the same file is already referred to as [Debugging](doc/debugging.md). The list stays in alphabetical order.

How these were found

I resolved every relative markdown link in the repository against the tree. Of 167 files these were the only two that did not resolve, and after the change the same sweep reports none.

I also checked rustc_codegen_gcc's copy inside rust-lang/rust: both links are broken there too, but since this repo is the subtree source (doc/subtree.md), fixing it here is what will carry over on the next sync.

Disclosure

AI-assisted (Claude Code): the link sweep and this description were produced with the tool, and I verified the result myself before opening — I confirmed both targets are absent, traced the two commits that added and removed debugging-gcc-lto.md, checked that the LTO section survives in doc/debugging.md, and re-ran the sweep afterwards.

For transparency about scope: I read the rust-lang LLM usage policy first. Its appendix states that it applies only to rust-lang/rust and that other repositories in the org, and subtrees, are free to set their own policies, and I did not find a policy in this repository. I am disclosing anyway rather than treating the absence of one as permission. Happy to adjust or withdraw this if you would prefer a different standard here.

doc/tips.md links to ./doc/gimple.md, but tips.md is itself inside doc/,
so the link resolves to doc/doc/gimple.md and 404s. The file sits next
to it.

Readme.md links to ./doc/debugging-gcc-lto.md. That file was added in
79316d4 and removed again in 79a6e4e, which replaced it with the
broader doc/debugging.md; the Readme entry was not updated. The GCC LTO
material is still there, as the first section of that file.
CONTRIBUTING.md already refers to it as [Debugging](doc/debugging.md),
so the Readme entry now matches that name.
@antoyo
antoyo merged commit 0f16c3c into rust-lang:master Aug 5, 2026
40 checks passed
@antoyo

antoyo commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

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.

2 participants