-
It would be great to be able to generate compile warning on unused crate specified in `Cargo.toml`, similar to `#![warn(unused_extern_crates)]` but that works with Rust 2018 where one doesn't use `ext…
-
### Summary
The lint only appears for public functions (i.e. public API surface of a library).
### Lint Name
impl_trait_in_params
### Reproducer
I tried this code:
```rust
#![deny(clippy::imp…
-
https://github.com/tikv/agatedb/blob/4aa6420cf79c5ef1a73e346591cfe39cca3a1a15/src/value.rs#L129
should change to
```rust
let mut arr: [MaybeUninit; 12] = unsafe { MaybeUninit::uninit().assume_i…
-
### Summary
The following clippy message has an incorrect suggestion:
```
warning: called `map().unwrap_or(false)` on an `Option` value
--> surfer\src/main.rs:1994:9
|
1994 | / self…
-
Currently we have a number of `impl Default` on classes that have a `new()` function that load data. The data is usually singleton but doesn't need to be (see SentenceSegmenter for instance).
This …
-
## Brief feature description
Explore if the bot from the article: https://www.cncf.io/blog/2023/06/06/a-chatgpt-powered-code-reviewer-bot-for-open-source-projects/ can be applied to iceoryx2
The…
-
When compiling a workspace that has a proc macro crate in it, rustc emits a malloc error causing tools such as miri and clippy to fail. This bug affects nightly versions 2021-12-05+.
I tried this …
-
I noticed this by checking `syn-1.0.54` downloaded from crates.io.
When I run `cargo clippy -- --cap-lints warn -Wclippy::cargo`, it looks like there is output leaking from cargo-metadata into the …
-
### Summary
Just an incorrect suggestion? of a manual_retain when there's existing (perhaps non-trivial) borrows in the mix.
[rust playground minimal example] (https://play.rust-lang.org/?versio…
-
Possible solutions:
- extend clippy-service & crater to provide (via an environment variable) a location for required shared libs to be dropped, and switch back to a build script in rust-systemd.
- …