about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src/errors.rs
diff options
context:
space:
mode:
authorRyan Lopopolo <rjl@hyperbo.la>2022-08-31 22:14:40 -0700
committerRyan Lopopolo <rjl@hyperbo.la>2022-10-19 19:17:32 -0700
commit16dd5737b07dca728d5b16a1722fd72fc9f9880d (patch)
tree57715aa1467944f145caa3f90d1a19db42a5a654 /compiler/rustc_plugin_impl/src/errors.rs
parent57781b24c54f9548722927ba88c343ff28da94ce (diff)
downloadrust-16dd5737b07dca728d5b16a1722fd72fc9f9880d.tar.gz
rust-16dd5737b07dca728d5b16a1722fd72fc9f9880d.zip
Add default trait implementations for "c-unwind" ABI function pointers
Following up on #92964, only add default trait implementations for the
`c-unwind` family of function pointers. The previous attempt in #92964
added trait implementations for many more ABIs and ran into concerns
regarding the increase in size of the libcore rlib.

An attempt to abstract away function pointer types behind a unified
trait to reduce the duplication of trait impls is being discussed in #99531
but this change looks to be blocked on a lang MCP.

Following @RalfJung's suggestion in
https://github.com/rust-lang/rust/pull/99531#issuecomment-1233440142,
this commit is another cut at #92964 but it _only_ adds the impls for
`extern "C-unwind" fn` and `unsafe extern "C-unwind" fn`.

I am interested in landing this patch to unblock the stabilization of
the `c_unwind` feature.

RFC: https://github.com/rust-lang/rfcs/pull/2945
Tracking Issue: https://github.com/rust-lang/rust/issues/74990
Diffstat (limited to 'compiler/rustc_plugin_impl/src/errors.rs')
0 files changed, 0 insertions, 0 deletions