rustdoc: redirect URLs by nrc · Pull Request #35236 · rust-lang/rust (original) (raw)
I was hoping you'd add a new test covering every single item type. For example enum variant struct fields and macros are different so need explicit tests.
I suppose a few more tests couldn't hurt. The main code paths are exercised and the coverage seems as good or better than existing Rustdoc tests.
Are you going to document this feature anywhere?
No. I see no point in encouraging use of these until the long-term URL solution is figured out.
What kind of stability guarantees do these new URLs have?
None, use at your own risk.
Can other people use them?
Sure, but I wouldn't encourage it.
You'll need to use derive_id for these as well. The existing ids are also missing a call to derive_id so you may as well also fix that while you're at it.
I was assuming there was some logic behind not calling derive_id here (e.g., you can't have duplicate named fields, so I assume there can't be a name clash).