You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running ./build.py in the qsharp repo fails due to Clippy's useless_conversion lint in qsc_frontend. This issue prevents building the Playground locally.
Error Message
error: useless conversion to the same type: `typeck::convert::TyConversionError`
--> compiler/qsc_frontend/src/typeck/convert.rs:261:21
|
261 |.into_iter()
| _____________________^
||_____________________|
262 ||| .map(TyConversionError::from)
|||_____________________________________^
263 ||.collect::<Vec<_>>();
||_________- help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `-D clippy::useless-conversion` implied by `-D warnings`
Steps to Reproduce
Clone the qsharp repo.
Run ./build.py in the root directory.
The build fails due to clippy::useless_conversion.
Environment
Rust Version:rustc --version 1.85.1
Cargo Version:cargo --version 1.85.1
Clippy Version:cargo clippy --version 0.1.85
The text was updated successfully, but these errors were encountered:
Remove unnecessary conversion picked up by the latest Clippy in
convert.rs
Switch to use .is_none_or instead of .map_or in ast_context.rs.
Fixesmicrosoft#2256
Describe the Issue
Running
./build.py
in theqsharp
repo fails due to Clippy'suseless_conversion
lint inqsc_frontend
. This issue prevents building the Playground locally.Error Message
Steps to Reproduce
qsharp
repo../build.py
in the root directory.clippy::useless_conversion
.Environment
rustc --version 1.85.1
cargo --version 1.85.1
cargo clippy --version 0.1.85
The text was updated successfully, but these errors were encountered: