Skip to content

Commit 938013b

Browse files
committed
Make lint allow-by-default
1 parent d62b097 commit 938013b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_lint/src/builtin.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3316,6 +3316,7 @@ declare_lint! {
33163316
///
33173317
/// ```rust
33183318
/// # #![allow(unused)]
3319+
/// #![warn(ref_binop_on_copy_type)]
33193320
/// pub fn slice_of_ints(input: &[(usize, usize, usize, usize)]) -> usize {
33203321
/// input
33213322
/// .iter()
@@ -3335,7 +3336,7 @@ declare_lint! {
33353336
/// smaller than a 64 bit pointer, we suggest dereferencing the value so the compiler will have
33363337
/// a better chance of producing optimal instructions.
33373338
REF_BINOP_ON_COPY_TYPE,
3338-
Deny,
3339+
Allow,
33393340
"detects binary operations on references to `Copy` types like `&42 < &50`",
33403341
}
33413342

0 commit comments

Comments
 (0)