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
For a given rustc lint (e.g., non_snake_case), cargo check and rust-analyzer report the same set of warnings/errors for that lint. If one of them reports a violation, the other does, too.
Actual behavior
In my project,
cargo check reports no issues ✅
rust-analyzer 0.3.1591-standalone (d82451103 2023-07-16) reports no issues ✅
rust-analyzer 0.3.1599-standalone (99718d0c8 2023-07-22) reports warning instances of the rustc lint non_snake_case ❌
Details
In my scenario I have a build.rs that generates a source file, which elsewhere I inline via tonic::include_proto!. For each instance in the generated code of #[derive(::prost::Message)], the newer rust-analyzer gives the following warning:
Function `ScalarWrapper` should have snake_case name, e.g. `scalar_wrapper`
Sorry, I won't have time in the next couple weeks to make a minimal repro. Hopefully this is enough info to give some ideas. Please let me know if there are any simple steps I can perform to help debug. Oh and if this is actually expected behavior, that's fine too, I can look into getting it resolved in prost-derive then.
The text was updated successfully, but these errors were encountered:
rust-analyzer version: rust-analyzer 0.3.1599-standalone (99718d0 2023-07-22)
rustc version: rustc 1.69.0 (84c898d65 2023-04-16)
Expected behavior
For a given rustc lint (e.g.,
non_snake_case
),cargo check
and rust-analyzer report the same set of warnings/errors for that lint. If one of them reports a violation, the other does, too.Actual behavior
In my project,
cargo check
reports no issues ✅rust-analyzer 0.3.1591-standalone (d82451103 2023-07-16)
reports no issues ✅rust-analyzer 0.3.1599-standalone (99718d0c8 2023-07-22)
reports warning instances of the rustc lintnon_snake_case
❌Details
In my scenario I have a build.rs that generates a source file, which elsewhere I inline via
tonic::include_proto!
. For each instance in the generated code of#[derive(::prost::Message)]
, the newer rust-analyzer gives the following warning:The only occurrence of that identifier in the
prost-derive
source tree is here: https://github.com/tokio-rs/prost/blob/468c80cd343321d5d4b361febbeec832ab5228b6/prost-derive/src/field/mod.rs#L145-L153Sorry, I won't have time in the next couple weeks to make a minimal repro. Hopefully this is enough info to give some ideas. Please let me know if there are any simple steps I can perform to help debug. Oh and if this is actually expected behavior, that's fine too, I can look into getting it resolved in prost-derive then.
The text was updated successfully, but these errors were encountered: