-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
doc: go:noinline directives in godoc #34276
Comments
I think this should be handled in go/doc.Func itself. When |
My impression from previous discussions (such as #32816 (comment)) is that |
That does, at least, suggest that we should have a |
I don't think we should have godoc remove these comments, as that would be confusing when the function's doc is in fact intended to include such a comment. Similarly, I don't think a Let's just fix the cases as @bcmills suggests, which is how it is supposed to be used anyhow. |
Adding NeedsFix, as positioning the runtime.KeepAlive is a good example: Lines 424 to 427 in 115e4c9
runtime.KeepAlive docs: https://godoc.org/runtime#KeepAlive |
Change https://golang.org/cl/195818 mentions this issue: |
Now that mid-stack inlining reports backtraces correctly, we no longer need to protect against inlining in a few critical areas. Update #19348 Update #28640 Update #34276 Change-Id: Ie68487e6482c3a9509ecf7ecbbd40fe43cee8381 Reviewed-on: https://go-review.googlesource.com/c/go/+/195818 Reviewed-by: David Chase <drchase@google.com>
Closing. |
In the docs for
runtime.Callers
https://golang.org/pkg/runtime/#Callers , the text ends withgo:noinline
. We probably shouldn't include that part (or anygo:
directive) in the godoc.This occurs in some internal packages as well, like
runtime/internal/atomic
.The text was updated successfully, but these errors were encountered: