diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-27 22:32:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-27 22:32:23 +0100 |
| commit | 4af3930f28d6e508d84664e7f066430284aa9ea1 (patch) | |
| tree | 4fc0cd03b79019381e81eb0c40e0814830e84f03 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff | |
| parent | 21b4a9cfdcbb1e76f4b36b5c3cfd64d627285093 (diff) | |
| parent | 4e8b91a920ce7bdb2284e39121bcda2294dc41a8 (diff) | |
| download | rust-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: 
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions
