-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE: unsized arguments must not be 'extern' types
#123887
Comments
Regression in nightly-2020-10-29 I guess #78152 |
@rustbot claim |
Looks like this is WONTFIX while the features remain experimental (see #123894 (comment)). @rustbot release-assignment |
Yeah, this is a deliberate ICE since a better error requires too much refactoring, and the fundamental issue is that this entire feature was never properly designed and poorly interacts with many other parts of the language. The fix is to mark unsized_fn_params as an internal feature, to warn people about the ICEs lurking here. |
Or maybe it is extern types that should be marked as incomplete, they are causing trouble in many ways as nobody ever prepared Rust for types whose size cannot be determined dynamically...
|
…iler-errors make unsized_fn_params an internal feature As suggested [here](rust-lang#123894 (comment)). r? `@compiler-errors` Fixes rust-lang#123887 (kind of -- ICEs on internal features are considered acceptable so this issue is not-a-bug once this PR lands)
…iler-errors make unsized_fn_params an internal feature As suggested [here](rust-lang#123894 (comment)). r? ``@compiler-errors`` Fixes rust-lang#123887 (kind of -- ICEs on internal features are considered acceptable so this issue is not-a-bug once this PR lands)
Rollup merge of rust-lang#126830 - RalfJung:unsized-fn-params, r=compiler-errors make unsized_fn_params an internal feature As suggested [here](rust-lang#123894 (comment)). r? `@compiler-errors` Fixes rust-lang#123887 (kind of -- ICEs on internal features are considered acceptable so this issue is not-a-bug once this PR lands)
make unsized_fn_params an internal feature As suggested [here](rust-lang/rust#123894 (comment)). r? `@compiler-errors` Fixes rust-lang/rust#123887 (kind of -- ICEs on internal features are considered acceptable so this issue is not-a-bug once this PR lands)
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Clink-dead-code
Program output
The text was updated successfully, but these errors were encountered: