oura icon indicating copy to clipboard operation
oura copied to clipboard

Stopped Compiling: error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable

Open ehanoc opened this issue 3 years ago • 2 comments

Just updated my branch to main

And am getting the following

...
   Compiling proc-macro-error v1.0.4
   Compiling form_urlencoded v1.1.0
   Compiling ring v0.16.20
   Compiling backtrace v0.3.66
   Compiling miniz-sys v0.1.12
   Compiling bytes-utils v0.1.3
   Compiling itertools v0.10.3
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-utils-0.1.3/src/string/mod.rs:326:6
    |
326 | impl<S: Storage> StrInner<S> {
    |      ^
...
359 |     pub const unsafe fn from_inner_unchecked(s: S) -> Self {
    |     ------------------------------------------------------ function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `bytes-utils` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `oura v1.7.0 (/home/kali/workspace/oura)`, intermediate artifacts can be found at `/home/kali/workspace/oura/target`

ehanoc avatar Sep 13 '22 10:09 ehanoc

@ehanoc I'm unable to reproduce. What version of rust are you using? perhaps try again after rustup upgrade

rvcas avatar Sep 13 '22 15:09 rvcas

Hi @ehanoc, the current "Minimum Supported Rust Version" (MSRV) for Oura is 1.58.1. Are you compiling with something older than that?

scarmuega avatar Sep 25 '22 22:09 scarmuega