diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-20 07:16:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 07:16:09 +0100 |
commit | 240cc81768f678bb4a6f8369080ef77515971963 (patch) | |
tree | 3865dd40c55787cd506df103378cbba565cf9a4c /tests/rustdoc-js-std/parser-errors.js | |
parent | df88f7e02c1e9a1e543e5c4767f0d5212c00182d (diff) | |
parent | 42f1f54a5e15616f23d22d09cbdd510ee3d5f789 (diff) | |
download | rust-240cc81768f678bb4a6f8369080ef77515971963.tar.gz |
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
Don't treat closures from other crates as local
fixes #104817
r? `@lcnr`
Specialization can prefer an impl for an opaque type over a blanket impls that also matches. If the blanket impl only applies if an auto-trait applies, we look at the hidden type of the opaque type to see if that implements the auto trait. The hidden type can be a closure or generator, and thus we will end up seeing these types in coherence and have to handle them properly.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions