diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-14 05:01:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-14 05:01:05 +0100 |
| commit | 8abb8235203b7c34c64bfeaa780e441387b2023f (patch) | |
| tree | 59cc1281f9e6193f3334e2d5ea1dd6b79011d241 /compiler/rustc_codegen_gcc | |
| parent | 71ee12c8da3f6a343bc7125105df0abb88663237 (diff) | |
| parent | 7fb2fc01a5410163264ce195a9eb1db61fb54d87 (diff) | |
| download | rust-8abb8235203b7c34c64bfeaa780e441387b2023f.tar.gz rust-8abb8235203b7c34c64bfeaa780e441387b2023f.zip | |
Rollup merge of #133942 - BD103:black-box-docs, r=saethlin
Clarify how to use `black_box()` Closes #133923. r? libs ^ (I think that's the right group, this is my first time!) This PR adds further clarification on the [`black_box()`](https://doc.rust-lang.org/stable/std/hint/fn.black_box.html) documentation. Specifically, it teaches _how_ to use it, instead of just _when_ to use it. I tried my best to make it clear and accurate, but a lot of my information is sourced from https://github.com/rust-lang/rust-clippy/issues/12707 and [manually inspecting assembly](https://godbolt.org/). Please tell me if I got anything wrong!
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
