-
Notifications
You must be signed in to change notification settings - Fork 13k
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
black_box docs correctness claim incorrect #107957
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Comments
gonzalobg
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Feb 12, 2023
@gonzalobg are you interested in making a PR to fix this? :) |
jyn514
added
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
labels
Feb 15, 2023
Can't, sorry. |
@rustbot claim |
It seems that there are some other parts of the docs that are still incorrect. For example, in the How to use it section, the incorrect claim continues to be repeated:
I think the whole document needs a pass to fix this. |
@rustbot claim |
pat-nel87
added a commit
to pat-nel87/rust
that referenced
this issue
Feb 24, 2023
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 26, 2023
Rollup of 9 pull requests Successful merges: - rust-lang#108416 (black_box doc corrections for clarification - Issue rust-lang#107957) - rust-lang#109379 (Replace `yes` command by `while-echo` in test `tests/ui/process/process-sigpipe.rs`) - rust-lang#110266 (Update documentation wording on path 'try_exists' functions) - rust-lang#110329 (Improve tests for rust-lang#110138) - rust-lang#110418 (Spelling rustdoc) - rust-lang#110587 (Fix `std` compilation error for wasi+atomics) - rust-lang#110594 (`rustc --help` add `--cfg` SPEC declaration.) - rust-lang#110792 (Use the standard macOS CI runner) - rust-lang#110817 (Add regression tests for const-generic inherent associated types) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
thomcc
pushed a commit
to tcdi/postgrestd
that referenced
this issue
Jul 18, 2023
…n514 black_box doc corrections for clarification - Issue #107957 Made a complete pass through the docs to help resolve rust-lang/rust#107957 No code changes, just documentation `@rustbot` label +T-libs-api -T-libs
spikespaz
pushed a commit
to spikespaz/dotwalk-rs
that referenced
this issue
Aug 29, 2024
…n514 black_box doc corrections for clarification - Issue #107957 Made a complete pass through the docs to help resolve rust-lang/rust#107957 No code changes, just documentation `@rustbot` label +T-libs-api -T-libs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Location
https://doc.rust-lang.org/stable/std/hint/fn.black_box.html
Summary
The documentation of
black_box
states:but this is not accurate since programs can rely on it behaving like the identity function.
It would be better to reword this as
or similar, e.g.,
The text was updated successfully, but these errors were encountered: