Skip to content

Conversation

kevinmehall
Copy link
Contributor

As of 8876ce4, is_sugared_doc is encoded in metadata, so there is no
need to assume that all doc attributes came from sugared comments.

Fixes #15976

…ng#15976

As of 8876ce4, `is_sugared_doc` is encoded in metadata, so there is no
need to assume that doc attributes came from sugared comments.
@alexcrichton
Copy link
Member

Just making sure, but you've confirmed that the docs for std don't look funny? (they're the ones with the most reexports)

@kevinmehall
Copy link
Contributor Author

Docs for Option and Iterator (which I know are re-exported from core) in doc/ look fine after make check.

I also manually tested, but wasn't sure how I'd include an automated test involving rustdoc and multiple crates:

image

bors added a commit that referenced this pull request Aug 27, 2014
As of 8876ce4, `is_sugared_doc` is encoded in metadata, so there is no
need to assume that all `doc` attributes came from sugared comments.

Fixes #15976
@bors bors closed this Aug 27, 2014
@bors bors merged commit ef13555 into rust-lang:master Aug 27, 2014
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 10, 2024
fix: keep attributes in assist 'generate_delegate_trait'

fix rust-lang#15198.

This PR address the issue that `impl` generated by `generate_delegate_trait` doesn't keep attributes.
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.

rustdoc fails at 'not a doc-comment'

3 participants