You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustdoc does not warn about misuse of html render option attributes #149187
Rustdoc should emit a separate warning or error for each attribute misuse.
I would recommend a new lint (eg. rustdoc::bad_render_attr), which would be introduced as warn by default, then upgraded to deny by default, and eventually made a hard error over an edition.
It would be nice to make it a sub-lint, kinda like broken_intra_doc_links and private_intra_doc_links, tho that relationship is actually defined via control flow and not declarativly..
Eventually this will all be solved by porting these attributes over to the new parsing infrastructure, but in the meantime I'm gonna try to improve MetaItemInner's ABI. hopefully changing semantics and implementation separately will make for a smoother transition, since then we should be able to have the rewrite's behavior be identical to what we were doing before.
Activity
lolbinarycat commentedon Nov 21, 2025
Hmm, this could alternatively just be wrapped into
invalid_doc_attributes..lolbinarycat commentedon Nov 21, 2025
It would be nice to make it a sub-lint, kinda like
broken_intra_doc_linksandprivate_intra_doc_links, tho that relationship is actually defined via control flow and not declarativly..lolbinarycat commentedon Nov 21, 2025
Ok, here's another related snippet:
lolbinarycat commentedon Nov 21, 2025
Eventually this will all be solved by porting these attributes over to the new parsing infrastructure, but in the meantime I'm gonna try to improve
MetaItemInner's ABI. hopefully changing semantics and implementation separately will make for a smoother transition, since then we should be able to have the rewrite's behavior be identical to what we were doing before.lolbinarycat commentedon Nov 21, 2025
yet another thing we don't catch: duplicate attributes (i think there's already an issue for this)
Rollup merge of rust-lang#149197 - lolbinarycat:rustdoc-bad-render-at…
Unrolled build for #149197