mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
add more information in comment
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// Test if `Expr::can_have_side_effects` considers element of repeat expressions.
|
||||
|
||||
fn drop_repeat_in_arm_body() {
|
||||
// Built-in lint `dropping_copy_types` relies on
|
||||
// `Expr::can_have_side_effects` (See rust-clippy#9482)
|
||||
// Built-in lint `dropping_copy_types` relies on `Expr::can_have_side_effects`
|
||||
// (See rust-clippy#9482 and rust#113231)
|
||||
|
||||
match () {
|
||||
() => drop([0; 1]), // No side effects
|
||||
|
||||
Reference in New Issue
Block a user