]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #74340 - davidtwco:issue-73747-improper-ctypes-defns-is-zst-with...
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 14 Jul 2020 20:19:39 +0000 (13:19 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2020 20:19:39 +0000 (13:19 -0700)
lint: use `transparent_newtype_field` to avoid ICE

Fixes #73747.

This PR re-uses the `transparent_newtype_field` function instead of manually calling `is_zst` on normalized fields to determine which field in a transparent type is the non-zero-sized field, thus avoiding an ICE.


Trivial merge