Commit 16dd573
committed
Add default trait implementations for "c-unwind" ABI function pointers
Following up on rust-lang#92964, only add default trait implementations for the
`c-unwind` family of function pointers. The previous attempt in rust-lang#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 rust-lang#99531
but this change looks to be blocked on a lang MCP.
Following @RalfJung's suggestion in
rust-lang#99531 (comment),
this commit is another cut at rust-lang#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: rust-lang/rfcs#2945
Tracking Issue: rust-lang#749901 parent 57781b2 commit 16dd573
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
| 1941 | + | |
| 1942 | + | |
1941 | 1943 | | |
1942 | 1944 | | |
1943 | 1945 | | |
| 1946 | + | |
| 1947 | + | |
1944 | 1948 | | |
1945 | 1949 | | |
1946 | 1950 | | |
1947 | 1951 | | |
1948 | 1952 | | |
| 1953 | + | |
1949 | 1954 | | |
1950 | 1955 | | |
| 1956 | + | |
1951 | 1957 | | |
1952 | 1958 | | |
1953 | 1959 | | |
| |||
0 commit comments