Always require closure parameters to be Sized#111864
Merged
bors merged 1 commit intorust-lang:masterfrom May 24, 2023
Merged
Conversation
Collaborator
|
r? @spastorino (rustbot has picked a reviewer for you, use r? to override) |
397f6ee to
d925496
Compare
Contributor
|
Can you test more combinations, like |
Contributor
|
Squash this into one commit, please, then I can approve. |
The `rust-call` ABI isn't compatible with `#![feature(unsized_fn_params)]`, so trying to use that feature with closures leads to an ICE (rust-lang#67981). This turns that ICE into a type-check error.
e7f2c0a to
5cd02ea
Compare
Contributor
Author
|
Done |
Contributor
|
Lol, sorry, mistakenly mixed up two examples and thought it still ICEd. Anywho, if I do find some way of triggering another ICE like this with just fn pointers I'll just open another issue. @bors r+ rollup |
Collaborator
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
May 24, 2023
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#111861 (Don't ICE on return-type notation when promoting trait preds to associated type bounds) - rust-lang#111864 (Always require closure parameters to be `Sized`) - rust-lang#111870 (Rename `traits_in_crate` query to `traits`) - rust-lang#111880 (Don't ICE when computing PointerLike trait when region vars are in param-env) - rust-lang#111887 (Add regression tests for pretty-printing inherent projections) r? `@ghost` `@rustbot` modify labels: rollup
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Jun 13, 2023
…d, r=eholk Don't ICE on unsized `extern "rust-call"` call Conceptually builds on rust-lang#111864, but doesn't depend on it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
rust-callABI isn't compatible with#![feature(unsized_fn_params)], so trying to use that feature with closures leads to an ICE (#67981). This turns that ICE into a type-check error.@rustbot label A-closures F-unsized_fn_params