Document that Option<extern "abi" fn> discriminant elision applies for any ABI#95083
Document that Option<extern "abi" fn> discriminant elision applies for any ABI#95083bors merged 1 commit intorust-lang:masterfrom
Option<extern "abi" fn> discriminant elision applies for any ABI#95083Conversation
…for any ABI The current phrasing was not very clear on that aspect.
|
I am not sure why it specifically says |
|
Cc @rust-lang/lang |
|
Hm, I can't really imagine why -- it seems like a property of the architecture if anything whether null is a valid function pointer, not the ABI. |
|
Looking back at this comment indeed it seems the intention was to cover all ABIs. The PR originally just mentioned Niko also wrote
So, based on that: I am curious how/whether that footnote will render in rustdoc... |
|
📌 Commit 156734d has been approved by |
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#94115 (Let `try_collect` take advantage of `try_fold` overrides) - rust-lang#94295 (Always evaluate all cfg predicate in all() and any()) - rust-lang#94848 (Compare installed browser-ui-test version to the one used in CI) - rust-lang#94993 (Add test for >65535 hashes in lexing raw string) - rust-lang#95017 (Derive Eq for std::cmp::Ordering, instead of using manual impl.) - rust-lang#95058 (Add use of bool::then in sys/unix/process) - rust-lang#95083 (Document that `Option<extern "abi" fn>` discriminant elision applies for any ABI) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
See https://doc.rust-lang.org/nightly/std/pin/macro.pin.html#fn1 for an example |
The current phrasing was not very clear on that aspect.
r? @RalfJung
@rustbot modify labels: A-docs A-ffi