Mention "null pointer optimization" in option docs.#85826
Mention "null pointer optimization" in option docs.#85826bors merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @scottmcm (rust-highfive has picked a reviewer for you, use r? to override) |
|
Thanks for adding this! I've never seen this written as "NPO" before; do you have any reference for that acronym being used? |
|
Sure! Some examples I picked up by searching just now: https://users.rust-lang.org/t/unsafe-rust-is-tough/48881 In my searches it was surprisingly less common than I expected. But I do recall having the experience of seeing someone write "NPO" in some chat environment (not the Discord link above; it was many months ago), and having to ask what it meant. |
|
📌 Commit 79575a1 has been approved by |
…laumeGomez Rollup of 4 pull requests Successful merges: - rust-lang#85473 (fix split-debuginfo error message) - rust-lang#85622 (Remove toggle for "undocumented items.") - rust-lang#85826 (Mention "null pointer optimization" in option docs.) - rust-lang#85860 (Fix details rustdoc toggle for blanket impl) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I had seen people discuss "null pointer optimization," but when I tried to find official documentation (using Google), the
std::optionpage didn't show up, because it doesn't use that term. Hopefully adding the term will help others find it in the future.