Skip to content
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

error[E0658]: trait bounds other than Sized on const fn parameters are unstable #803

Closed
ArunGust opened this issue Mar 17, 2022 · 3 comments

Comments

@ArunGust
Copy link

Compile error

Compiling crossbeam-epoch v0.9.8
error[E0658]: trait bounds other than Sized on const fn parameters are unstable
--> C:\SYSTEM\RUST\CARGO\registry\src\github.com-1ecc6299db9ec823\crossbeam-epoch-0.9.8\src\atomic.rs:314:6
|
314 | impl<T: ?Sized + Pointable> Atomic {
| ^
...
346 | pub const fn null() -> Atomic {
| -------------------------------- function declared as const here
|
= note: see issue #93706 rust-lang/rust#93706 for more information
= help: add #![feature(const_fn_trait_bound)] to the crate attributes to enable

For more information about this error, try rustc --explain E0658.
error: could not compile crossbeam-epoch due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

@taiki-e
Copy link
Member

taiki-e commented Mar 17, 2022

This can be fixed by using nightly-2022-03-08 or later.

There is no guarantee that crossbeam can be compiled with the old nightly compiler, so I'm going to close this.

@Aidiakapi
Copy link

This is incredibly annoying, because these nightly versions are currently having various components broken.

@taiki-e
Copy link
Member

taiki-e commented Mar 19, 2022

Users of the old nightly toolchains can downgrade crossbeam-epoch.

cargo update -p crossbeam-epoch:0.9.8 --precise 0.9.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants