about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-27 22:32:23 +0100
committerGitHub <noreply@github.com>2022-01-27 22:32:23 +0100
commit4af3930f28d6e508d84664e7f066430284aa9ea1 (patch)
tree4fc0cd03b79019381e81eb0c40e0814830e84f03 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
parent21b4a9cfdcbb1e76f4b36b5c3cfd64d627285093 (diff)
parent4e8b91a920ce7bdb2284e39121bcda2294dc41a8 (diff)
downloadrust-4af3930f28d6e508d84664e7f066430284aa9ea1.tar.gz
rust-4af3930f28d6e508d84664e7f066430284aa9ea1.zip
Rollup merge of #91641 - dtolnay:cchar-if, r=Mark-Simulacrum
Define c_char using cfg_if rather than repeating 40-line cfg

Libstd has a 40-line cfg that defines the targets on which `c_char` is unsigned, and then repeats the same cfg with `not(…)` for the targets on which `c_char` is signed.

This PR replaces it with a `cfg_if!` in which an `else` takes care of the signed case.

I confirmed that `x.py doc library/std` inlines the type alias because c_char_definition is not a publicly accessible path:

![Screenshot from 2021-12-07 13-42-07](https://user-images.githubusercontent.com/1940490/145110596-f1058406-9f32-44ff-9a81-1dfd19b4a24f.png)
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions