clap-rs / clap

A full featured, fast Command Line Argument Parser for Rust
docs.rs/clap
Apache License 2.0
14.14k stars 1.03k forks source link

Can not compile clap success when I use toolchain nightly-x86_64-unknown-linux-gnu #5385

Closed jokemanfire closed 7 months ago

jokemanfire commented 7 months ago

Please complete the following tasks

Rust Version

rustc 1.74.0-nightly

Clap Version

clap_lex-0.7.0

Minimal reproducible code

cargo install cargo-outdated

Steps to reproduce the bug with the above code

cargo install cargo-outdated

Actual Behaviour

error[E0599]: no function or associated item named from_encoded_bytes_unchecked found for struct OsStr in the current scope -->***/clap_lex-0.7.0/src/ext.rs:234:24 | 234 | OsStr::from_encoded_bytes_unchecked(second), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in OsStr

Expected Behaviour

I expected the clap should compile successful

Additional Context

No response

Debug Output

No response

epage commented 7 months ago

While our MSRV is 1.74, you are likely on a 1.74 nightly from before this feature was stabilized.

jokemanfire commented 7 months ago

While our MSRV is 1.74, you are likely on a 1.74 nightly from before this feature was stabilized.

thank you, but it means clap didn't support for 1.74 nightly? or It can add the judgment of this feature?

epage commented 7 months ago

It supports 1.74 stable. If you want to use it on a nightly of 1.74, it up to you to find a compatible nightly. Alternatively, you can downgrade.

jokemanfire commented 7 months ago

Understood, I will change it to 1.74 stable. thanks