]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 8 Feb 2023 06:13:26 +0000 (07:13 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 06:13:26 +0000 (07:13 +0100)
commitfabefe3f313f3aec7f2172ced923d1fa9708d0b2
tree0c50e323b94f3afd30f3f38784f0e2f2d3c8fa6c
parentb16a321b25d436daa43397df39f1d5065f0fb15f
parent2b70cbb8a5935a8fbc8d52d7e8304f8eefeb2d21
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk

Rename `PointerSized` to `PointerLike`

The old name was unnecessarily vague. This PR renames a nightly language feature that I added, so I don't think it needs any additional approval, though anyone can feel free to speak up if you dislike the rename.

It's still unsatisfying that we don't the user which of {size, alignment} is wrong, but this trait really is just a stepping stone for a more generalized mechanism to create `dyn*`, just meant for nightly testing, so I don't think it really deserves additional diagnostic machinery for now.

Fixes #107696, cc ``@RalfJung``
r? ``@eholk``