Comments (2)
What's the reason for checking that T is in the current crate?
from rust-clippy.
@lfairy If it's not in the current crate, it's possible that you can't refactor a type that is Copy
, but large, by making smaller elements Copy
instead. If you can't do that, it's possible (albeit unlikely) that the overhead of copying the entire type would make RefCell
attractive. Maybe this lint could be refined so that it warns unless the type is "large" and not in the current crate, but I'm not sure how much of that information is actually available at lint time.
from rust-clippy.
Related Issues (20)
- `mut_mutex_lock` emitted on a `&mut &Mutex<T>`
- Don't pass `vec![]` to `IntoIterator` arguments when not needed HOT 5
- Respect `#[allow(clippy::inconsistent_struct_constructor)]` on adt definition. HOT 7
- Suggest using `eq_ignore_ascii_case` on non case-sensitive string comparision
- `nonminimal_bool` can take excessive time
- Clippy doesn't warn on `self` parameter for lints `pass-by-value-size-limit` and `trivial-copy-size-limit` HOT 2
- missing_transmute_annotations wrong order of Src and Dst HOT 1
- needless_borrows_for_generic_arg seems to have introduced suggestions that break compilation for 1.80.0 HOT 1
- `macro_metavars_in_unsafe` does not lint "without a statement".
- Slow and biased rounding
- unnecessary_lazy_evaluations suggests running `unsafe` code eagerly HOT 6
- redundant_locals incorrectly emitted when binding in new local scope for early drop
- Print_* family of lints fail to match on `async_trait` functions with a return value
- indexing does not trigger missing_panics_doc HOT 4
- declare_interior_mutable_const fires for static pointer types
- Lint against Arc<impl Copy> HOT 1
- duplicated_attributes: false positive with apistos crate
- Clippy to fix warnings when they are converted to errors HOT 1
- Incorrectly printed suggestion for `map(<f>).unwrap_or(false)` on multiple lines HOT 1
- regression: unnecessary_lazy_evaluations not triggered on thiserror enum variant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-clippy.