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

Compilation issue on rustc nightly versions #2

Open
realaravinth opened this issue Apr 10, 2022 · 0 comments
Open

Compilation issue on rustc nightly versions #2

realaravinth opened this issue Apr 10, 2022 · 0 comments

Comments

@realaravinth
Copy link
Member

Switching to stable releases fixes this problem

Error compilation logs

See logs
➜  world git:(master) ✗ make check
cargo check
   Compiling starchart v0.1.0 (/home/aravinth/code/forgedfed/world)
    Finished dev [unoptimized + debuginfo] target(s) in 0.54s
cd db/db-sqlx-sqlite &&\
        DATABASE_URL=sqlite:///home/aravinth/code/forgedfed/world/db/db-sqlx-sqlite/tmp/admin.db\
        cargo check
   Compiling lock_api v0.4.7
    Checking futures-executor v0.3.21
   Compiling hashbrown v0.11.2
   Compiling rustls v0.19.1
   Compiling webpki-roots v0.21.1
   Compiling async-trait v0.1.53
   Compiling sha2 v0.9.9
    Checking url v2.2.2
   Compiling serde v1.0.136
   Compiling pin-project v1.0.10
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/aravinth/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/mutex.rs:150:6
    |
150 | impl<R: RawMutex, T> Mutex<R, T> {
    |      ^
...
154 |     pub const fn new(val: T) -> Mutex<R, T> {
    |     --------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/aravinth/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/remutex.rs:231:6
    |
231 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
    |      ^
...
235 |     pub const fn new(val: T) -> ReentrantMutex<R, G, T> {
    |     --------------------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/aravinth/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/remutex.rs:231:19
    |
231 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
    |                   ^
...
235 |     pub const fn new(val: T) -> ReentrantMutex<R, G, T> {
    |     --------------------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/aravinth/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/rwlock.rs:367:6
    |
367 | impl<R: RawRwLock, T> RwLock<R, T> {
    |      ^
...
371 |     pub const fn new(val: T) -> RwLock<R, T> {
    |     ---------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/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 `lock_api` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [Makefile:16: check] Error 101
➜  world git:(master) ✗ rustc --version
rustc 1.61.0-nightly (68369a041 2022-02-22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant