Skip to content

Commit f247300

Browse files
authored
Rollup merge of #111756 - Urgau:rename_drop_forget_copy_ref_lints, r=fee1-dead
Rename `{drop,forget}_{copy,ref}` lints to more consistent naming This PR renames previous uplifted lints in rust-lang/rust#109732 to more consistent naming. I followed the renaming done [here](rust-lang/rust#53224) and also advocated in this [clippy issue](rust-lang/rust-clippy#2845): - `drop_copy` to `dropping_copy_types` - `forget_copy` to `forgetting_copy_types` - `drop_ref` to `dropping_references` - `forget_ref` to `forgetting_references`
2 parents 171b71d + 931bd01 commit f247300

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/fail/stacked_borrows/illegal_write2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(drop_ref)]
1+
#![allow(dropping_references)]
22

33
fn main() {
44
let target = &mut 42;

tests/fail/uninit_buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@error-in-other-file: memory is uninitialized at [0x4..0x10]
22

3-
#![allow(drop_copy)]
3+
#![allow(dropping_copy_types)]
44

55
use std::alloc::{alloc, dealloc, Layout};
66
use std::slice::from_raw_parts;

tests/fail/uninit_buffer_with_provenance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@error-in-other-file: memory is uninitialized at [0x4..0x8]
22
//@normalize-stderr-test: "a[0-9]+" -> "ALLOC"
33
#![feature(strict_provenance)]
4-
#![allow(drop_copy)]
4+
#![allow(dropping_copy_types)]
55

66
// Test printing allocations that contain single-byte provenance.
77

tests/pass/stacked-borrows/zst-field-retagging-terminates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@compile-flags: -Zmiri-retag-fields
22
// Checks that the test does not run forever (which relies on a fast path).
33

4-
#![allow(drop_copy)]
4+
#![allow(dropping_copy_types)]
55

66
fn main() {
77
let array = [(); usize::MAX];

0 commit comments

Comments
 (0)