You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
possibly preceded by a rustup install to install the nightly in question.
Witness the following output:
error[E0277]: the size for values of type `Self` cannot be known at compilation time
--> /home/huitseeker/.cargo/git/checkouts/kompact-8e3803f644d2dc0c/b3d31ba/core/src/utils.rs:621:32
|
621 | fn for_each_with<T, F>(mut self, t: T, mut f: F)
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: unsized fn params are gated as an unstable feature
help: consider further restricting `Self`
|
624 | F: FnMut(Self::Item, T), Self: Sized
| ^^^^^^^^^^^^^
help: function arguments must have a statically known size, borrowed types always have a known size
|
621 | fn for_each_with<T, F>(&mut self, t: T, mut f: F)
| ^
error[E0277]: the size for values of type `Self` cannot be known at compilation time
--> /home/huitseeker/.cargo/git/checkouts/kompact-8e3803f644d2dc0c/b3d31ba/core/src/utils.rs:647:36
|
647 | fn for_each_try_with<T, F>(mut self, t: T, mut f: F) -> Result<(), SerError>
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: unsized fn params are gated as an unstable feature
help: consider further restricting `Self`
|
650 | F: FnMut(Self::Item, T), Self: Sized
| ^^^^^^^^^^^^^
help: function arguments must have a statically known size, borrowed types always have a known size
|
647 | fn for_each_try_with<T, F>(&mut self, t: T, mut f: F) -> Result<(), SerError>
| ^
error: aborting due to 2 previous errors
Workaround
One simple way to upgrade is to update the activation of the unsized_locals feature to target unsized_fn_params. Except this is not backwards-compatible (feature gate errors are fatal and this triggers E0635) and will break every nightly below 2020-10-29.
That includes most nightlies in interactive (human-facing) use since rustfmt has not compiled on nightly since 2020-10-25 or so. It's advised not to merge until the "main" components are available in a post 10-29 nightly here : https://rust-lang.github.io/rustup-components-history/
The text was updated successfully, but these errors were encountered:
Issue
The nightly feature required here:
kompact/core/src/utils.rs
Lines 608 to 669 in b3d31ba
And turned on optionally there:
breaks with nightly 2020-10-29 because of rust-lang/rust#78152
feature(unsized_locals)
was split into two disjoint features:feature(unsized_locals)
which is marked as incompletefeature(unsized_fn_params)
which isn't, and which is what Kompact is actually using here.So post nightly 2020-10-29, Kompact is not activating the feature it actually needs.
Steps to reproduce
possibly preceded by a
rustup install
to install the nightly in question.Witness the following output:
Workaround
One simple way to upgrade is to update the activation of the
unsized_locals
feature to targetunsized_fn_params
. Except this is not backwards-compatible (feature gate errors are fatal and this triggers E0635) and will break every nightly below 2020-10-29.That includes most nightlies in interactive (human-facing) use since rustfmt has not compiled on nightly since 2020-10-25 or so. It's advised not to merge until the "main" components are available in a post 10-29 nightly here :
https://rust-lang.github.io/rustup-components-history/
The text was updated successfully, but these errors were encountered: