forgeflux-org / starchart

Software forge spider
GNU Affero General Public License v3.0
13 stars 2 forks source link

Compilation issue on rustc nightly versions #2

Open realaravinth opened 2 years ago

realaravinth commented 2 years ago

Switching to stable releases fixes this problem

Error compilation logs

See logs ```bash ➜ 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 Mutex { | ^ ... 154 | pub const fn new(val: T) -> Mutex { | --------------------------------------- function declared as const here | = note: see issue #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 ReentrantMutex { | ^ ... 235 | pub const fn new(val: T) -> ReentrantMutex { | --------------------------------------------------- function declared as const here | = note: see issue #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 ReentrantMutex { | ^ ... 235 | pub const fn new(val: T) -> ReentrantMutex { | --------------------------------------------------- function declared as const here | = note: see issue #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 RwLock { | ^ ... 371 | pub const fn new(val: T) -> RwLock { | ---------------------------------------- function declared as const here | = note: see issue #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) ```