Repository navigation
Commit 095ed6b
committed
docs: use per-comment reference defs for field links (tidy-compatible)
rust-llm-tidy's link op collapses inline [x](Self::x) links into
reference-style [x] + [x]: Self::x. That breaks rustdoc: reference
definitions are scoped to the single doc comment they appear in, so defs
on one field's docs cannot serve uses on neighboring fields' docs. The
op also appends the defs at EOF outside any comment, yielding invalid
Rust.
Variant C keeps the reference style tidy prefers, but duplicates each def
inside every doc comment that uses it, so each comment is self-contained:
rustdoc stays green (-D warnings) and rust-llm-tidy leaves the file alone
(dry-run reports no changes).1 parent cfde760 commit 095ed6b
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 | | |
113 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| |||
0 commit comments