]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #82228 - ijackson:nonzero-cint, r=KodrAus
authorYuki Okushi <huyuumi.dev@gmail.com>
Mon, 22 Feb 2021 09:26:06 +0000 (18:26 +0900)
committerGitHub <noreply@github.com>
Mon, 22 Feb 2021 09:26:06 +0000 (18:26 +0900)
commita5f66689203cff8f96f110bf10926c2d911f6811
tree46dce12f0df0f7ac14998dbc9812fd076c4ed4fb
parent3cf201fb81458ab6d9181849fd2823fd6d2a4e37
parent60a9dcc4e3a98362bc4c4a3bfa4918c1f4f639b1
Rollup merge of #82228 - ijackson:nonzero-cint, r=KodrAus

Provide NonZero_c_* integers

I'm pretty sure I am going want this for #73125 and it seems like an
omission that would be in any case good to remedy.

<strike>Because the raw C types are in `std`, not `core`, to achieve this we
must export the relevant macros from `core` so that `std` can use
them.  That's done with a new `num_internals` perma-unstable feature.

The macros need to take more parameters for the module to get the
types from and feature attributes to use.

I have eyeballed the docs output for core, to check that my changes to
these macros have made no difference to the core docs output.</strike>
library/std/src/lib.rs