We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d62b097 commit 938013bCopy full SHA for 938013b
compiler/rustc_lint/src/builtin.rs
@@ -3316,6 +3316,7 @@ declare_lint! {
3316
///
3317
/// ```rust
3318
/// # #![allow(unused)]
3319
+ /// #![warn(ref_binop_on_copy_type)]
3320
/// pub fn slice_of_ints(input: &[(usize, usize, usize, usize)]) -> usize {
3321
/// input
3322
/// .iter()
@@ -3335,7 +3336,7 @@ declare_lint! {
3335
3336
/// smaller than a 64 bit pointer, we suggest dereferencing the value so the compiler will have
3337
/// a better chance of producing optimal instructions.
3338
REF_BINOP_ON_COPY_TYPE,
- Deny,
3339
+ Allow,
3340
"detects binary operations on references to `Copy` types like `&42 < &50`",
3341
}
3342
0 commit comments