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

use of unstable library feature 'duration_constants' #1062

Closed
arch-user-france1 opened this issue Oct 10, 2021 · 4 comments
Closed

use of unstable library feature 'duration_constants' #1062

arch-user-france1 opened this issue Oct 10, 2021 · 4 comments

Comments

@arch-user-france1
Copy link

arch-user-france1 commented Oct 10, 2021

     Running `rustc --crate-name quiche --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --crate-type staticlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="ffi"' -C metadata=2ce2d20d1896e6b4 --out-dir /root/quiche/target/release/deps -L dependency=/root/quiche/target/release/deps --extern lazy_static=/root/quiche/target/release/deps/liblazy_static-a266cfe319823817.rlib --extern libc=/root/quiche/target/release/deps/liblibc-deb97e6f5c8ff939.rlib --extern libm=/root/quiche/target/release/deps/liblibm-14de8d9cbe7992a5.rlib --extern log=/root/quiche/target/release/deps/liblog-8e87dd94a852e2e6.rlib --extern ring=/root/quiche/target/release/deps/libring-28bb73af57141f28.rlib -L native=/root/quiche/target/release/build/ring-621d5b0dd59ce31c/out`
error[E0658]: use of unstable library feature 'duration_constants'
  --> src/recovery/hystart.rs:91:33
   |
91 |             last_round_min_rtt: Duration::MAX,
   |                                 ^^^^^^^^^^^^^
   |
   = note: see issue #57391 <https://github.com/rust-lang/rust/issues/57391> for more information

error[E0658]: use of unstable library feature 'duration_constants'
  --> src/recovery/hystart.rs:93:36
   |
93 |             current_round_min_rtt: Duration::MAX,
   |                                    ^^^^^^^^^^^^^
   |
   = note: see issue #57391 <https://github.com/rust-lang/rust/issues/57391> for more information

error[E0658]: use of unstable library feature 'duration_constants'
  --> src/recovery/hystart.rs:95:35
   |
95 |             css_baseline_min_rtt: Duration::MAX,
   |                                   ^^^^^^^^^^^^^
   |
   = note: see issue #57391 <https://github.com/rust-lang/rust/issues/57391> for more information

error[E0658]: use of unstable library feature 'duration_constants'
   --> src/recovery/hystart.rs:125:42
    |
125 |             self.current_round_min_rtt = Duration::MAX;
    |                                          ^^^^^^^^^^^^^
    |
    = note: see issue #57391 <https://github.com/rust-lang/rust/issues/57391> for more information

error[E0658]: use of unstable library feature 'duration_saturating_ops'
   --> src/recovery/hystart.rs:159:45
    |
159 |                     self.last_round_min_rtt.saturating_add(rtt_thresh)
    |                                             ^^^^^^^^^^^^^^
    |
    = note: see issue #76416 <https://github.com/rust-lang/rust/issues/76416> for more information

error[E0658]: use of unstable library feature 'duration_constants'
   --> src/recovery/hystart.rs:171:49
    |
171 |                     self.css_baseline_min_rtt = Duration::MAX;
    |                                                 ^^^^^^^^^^^^^
    |
    = note: see issue #57391 <https://github.com/rust-lang/rust/issues/57391> for more information

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `quiche`

Caused by:
  process didn't exit successfully: `rustc --crate-name quiche --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --crate-type staticlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="ffi"' -C metadata=2ce2d20d1896e6b4 --out-dir /root/quiche/target/release/deps -L dependency=/root/quiche/target/release/deps --extern lazy_static=/root/quiche/target/release/deps/liblazy_static-a266cfe319823817.rlib --extern libc=/root/quiche/target/release/deps/liblibc-deb97e6f5c8ff939.rlib --extern libm=/root/quiche/target/release/deps/liblibm-14de8d9cbe7992a5.rlib --extern log=/root/quiche/target/release/deps/liblog-8e87dd94a852e2e6.rlib --extern ring=/root/quiche/target/release/deps/libring-28bb73af57141f28.rlib -L native=/root/quiche/target/release/build/ring-621d5b0dd59ce31c/out` (exit code: 1)
make[1]: *** [objs/Makefile:1361: ../quiche/target/release/libquiche.a] Fehler 101
make[1]: Verzeichnis „/root/nginx-1.16.1“ wird verlassen
make: *** [Makefile:8: build] Fehler 2

Doesn't work...

@arch-user-france1
Copy link
Author

An unstable feature was used.

Erroneous code example:

#[repr(u128)] // error: use of unstable library feature 'repr128'
enum Foo {
    Bar(u64),
}

If you're using a stable or a beta version of rustc, you won't be able to use
any unstable features. In order to do so, please switch to a nightly version of
rustc (by using rustup).

If you're using a nightly version of rustc, just add the corresponding feature
to be able to use it:

#![feature(repr128)]

#[repr(u128)] // ok!
enum Foo {
    Bar(u64),
}

@arch-user-france1
Copy link
Author

arch-user-france1 commented Oct 10, 2021

root@macubuntu:~/nginx-1.16.1# rustup --crate-name quiche --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --crate-type staticlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="ffi"' -C metadata=2ce2d20d1896e6b4 --out-dir /root/quiche/target/release/deps -L dependency=/root/quiche/target/release/deps --extern lazy_static=/root/quiche/target/release/deps/liblazy_static-a266cfe319823817.rlib --extern libc=/root/quiche/target/release/deps/liblibc-deb97e6f5c8ff939.rlib --extern libm=/root/quiche/target/release/deps/liblibm-14de8d9cbe7992a5.rlib --extern log=/root/quiche/target/release/deps/liblog-8e87dd94a852e2e6.rlib --extern ring=/root/quiche/target/release/deps/libring-28bb73af57141f28.rlib -L native=/root/quiche/target/release/build/ring-621d5b0dd59ce31c/out
error: Found argument '--crate-name' which wasn't expected, or isn't valid in this context

USAGE:
    rustup [FLAGS] [+toolchain] <SUBCOMMAND>

For more information try --help
root@macubuntu:~/nginx-1.16.1# 

@arch-user-france1
Copy link
Author

rustc 1.51.0

@arch-user-france1
Copy link
Author

arch-user-france1 commented Oct 10, 2021

Works again after:

rustup update nightly
apt remove rustc

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