diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-22 03:49:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-22 03:49:44 +0100 |
| commit | 7cf91567c4adaa906987c9dae39a96347da7b187 (patch) | |
| tree | 1c33eca1099d963b0b94c7028bc34db5cf344022 /src/ci/scripts/upload-build-metrics.py | |
| parent | bcdde4ea5b86e364108e41ee7baa27ce5c13c6b0 (diff) | |
| parent | 7b500d852d449a4ef06680e89730a46159267d64 (diff) | |
| download | rust-7cf91567c4adaa906987c9dae39a96347da7b187.tar.gz rust-7cf91567c4adaa906987c9dae39a96347da7b187.zip | |
Rollup merge of #134603 - kpreid:pointerlike-err, r=estebank
Explain why a type is not eligible for `impl PointerLike`. The rules were baffling when I ran in to them trying to add some impls (to `std`, not my own code, as it happens), so I made the compiler explain them to me. The logic of the successful cases is unchanged, but I did rearrange it to reverse the order of the primitive and `Adt` cases; this makes producing the errors easier. I'm still not very familiar with `rustc` internals, so let me know if there's a better way to do any of this. This also adds test coverage for which impls are accepted or rejected, which I didn't see any of already. The PR template tells me I should consider mentioning a tracking issue, but there isn't one for `pointer_like_trait`, so I'll mention `dyn_star`: #102425
Diffstat (limited to 'src/ci/scripts/upload-build-metrics.py')
0 files changed, 0 insertions, 0 deletions
