mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 01:46:06 +00:00
error on non-rustic ABIs using unsized parameters tracking issue: https://github.com/rust-lang/rust/issues/48055 This came up in https://github.com/rust-lang/rust/pull/144529#discussion_r2470214068. The idea is that the layout of an unsized type is unstable (following the rust layout rules), and hence stable ABIs should not use unsized types. On stable, unsized types (or generics with a `?Sized` bound) are not accepted as parameters, so the errors introduced by this PR can only be observed when the unstable `unsized_fn_params` feature is enabled. r? `@bjorn3` cc `@RalfJung`