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
which is much less readable. We have documentation on normalizing doc comments, but not everyone is using a nightly rustfmt. This change does not seem intentional but rather collateral damage in that feature, perhaps it's worth bringing the old behavior back.
The text was updated successfully, but these errors were encountered:
I think this is a sensible default as it removes unnecessary line noise.
Most people won't go through the trouble of parsing multiple doc tags in a real scenario, they'll use rustdoc or their IDE.
The normalized comments are definitely useful for a quick lookup by navigating to the definition, but I don't see this for #[doc] tags; they're not meant for humans.
I don't really find this to be unnecessary line noise.
The #[doc] tags are produced by bindgen after parsing doc comments on the C++ side: they're taking comments meant for humans and turning them into this tag. #[doc = ""] isn't great, but having it linebroken is better than nothing.
This behavior changed in f160d11
Bindgen used to produce doc comments like this:
but now these doc comments look like this:
which is much less readable. We have documentation on normalizing doc comments, but not everyone is using a nightly rustfmt. This change does not seem intentional but rather collateral damage in that feature, perhaps it's worth bringing the old behavior back.
The text was updated successfully, but these errors were encountered: