Uh oh!
There was an error while loading. Please reload this page.
Document that Option<extern "abi" fn> discriminant elision applies for any ABI - #95083
Conversation
…for any ABI The current phrasing was not very clear on that aspect.
RalfJung
commented
Mar 18, 2022
I am not sure why it specifically says |
Cc @rust-lang/lang |
nikomatsakis
commented
Mar 18, 2022
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. |
RalfJung
commented
Mar 18, 2022
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... |
bors
commented
Mar 18, 2022
📌 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
danielhenrymantilla
commented
Mar 18, 2022
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