about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-10-24 16:45:04 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-10-29 23:55:46 +0000
commit8c04999226e4be90c46c370580c9e8cd7f0ccb05 (patch)
treeca021c4632dee7d87089a65883c9b9f2e4c68196 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent608e9682f0a6482903de8d3332770104a0ad943c (diff)
downloadrust-8c04999226e4be90c46c370580c9e8cd7f0ccb05.tar.gz
rust-8c04999226e4be90c46c370580c9e8cd7f0ccb05.zip
On object safety error, mention new enum as alternative
When we encounter a `dyn Trait` that isn't object safe, look for its
implementors. If there's one, mention using it directly If there are
less than 9, mention the possibility of creating a new enum and using
that instead.

Account for object unsafe `impl Trait on dyn Trait {}`.  Make a
distinction between public and sealed traits.

Fix #80194.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions