about summary refs log tree commit diff
path: root/tests/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-19 20:36:02 +0000
committerbors <bors@rust-lang.org>2022-09-19 20:36:02 +0000
commitbde76b9abb3aade263f8381c1afd2677e53f4d23 (patch)
tree013bcc33a60f42c1b6745cf0f421d0993a86c335 /tests/debuginfo/enum-thinlto.rs
parent4d989b546558a873ea2376e4d4f0c7f22c762e81 (diff)
parent9845e37f58b32750b8eec2fc150d2a36bb9971a3 (diff)
downloadrust-bde76b9abb3aade263f8381c1afd2677e53f4d23.tar.gz
rust-bde76b9abb3aade263f8381c1afd2677e53f4d23.zip
Auto merge of #13264 - lowr:patch/no-dyn-without-trait, r=Veykril
Ensure at least one trait bound in `TyKind::DynTy`

One would expect `TyKind::DynTy` to have at least one trait bound, but we may produce a dyn type with no trait bounds at all. This patch prevents it by returning `TyKind::Error` in such cases.

An "empty" dyn type would have caused panic during method resolution without #13257. Although already fixed, I think an invariant to never produce such types would help prevent similar problems in the future.
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions