-
Notifications
You must be signed in to change notification settings - Fork 407
Replacing (C-not exported) in the docs #2110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #2110 +/- ##
==========================================
- Coverage 91.15% 91.14% -0.01%
==========================================
Files 101 101
Lines 48868 48868
Branches 48868 48868
==========================================
- Hits 44545 44542 -3
- Misses 4323 4326 +3
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly syn
, the tool the bindings generator uses to parse the source tree, ignores comments entirely, so we cannot remove these from the docs entirely. Further, I do think they're vaguely useful to humans - many of our bindings users do read the docs on crates.io
, and its useful to tell them that certain methods are missing and why. Now, that said, we can change the string arbitrarily, it doesn't need to say (C-not exported)
it can just as well say "This is not exported to bindings users " and the bindings generator could match on that.
Thank you for shedding more light on this, let me incorporate the shared suggestions and make the necessary changes |
Also, note that the main intent of #2105 to ensure that any of these comments are on freestanding lines (i.e. come after a blank |
@TheBlueMatt @tnull thank you for the review, I've addressed all the review comments in the new commit. |
Ah, it seems there has been a slight mixup. Excuse if I haven't been entirely clear before:
/// Here is some comment on below function
///
/// (C-not exported) ...
pub fn below_function(&self) -> bool { |
If we're gonna change the text, there's no reason to keep the |
I've cleaned up and made the recommended changes, also have rebased with the latest code. |
This PR fixes #2105. Before (C-not exported) statements were appearing in the docs but now are replaced with "This is not exported to bindings users" . This PR replaces and also ensures that any of these comments are on freestanding lines (i.e. come after a blank /// line).