Skip to content

Commit

Permalink
Rollup merge of #111756 - Urgau:rename_drop_forget_copy_ref_lints, r=…
Browse files Browse the repository at this point in the history
…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`
  • Loading branch information
Dylan-DPC committed May 22, 2023
2 parents 171b71d + 931bd01 commit f247300
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/fail/stacked_borrows/illegal_write2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(drop_ref)]
#![allow(dropping_references)]

fn main() {
let target = &mut 42;
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/uninit_buffer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//@error-in-other-file: memory is uninitialized at [0x4..0x10]

#![allow(drop_copy)]
#![allow(dropping_copy_types)]

use std::alloc::{alloc, dealloc, Layout};
use std::slice::from_raw_parts;
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/uninit_buffer_with_provenance.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@error-in-other-file: memory is uninitialized at [0x4..0x8]
//@normalize-stderr-test: "a[0-9]+" -> "ALLOC"
#![feature(strict_provenance)]
#![allow(drop_copy)]
#![allow(dropping_copy_types)]

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@compile-flags: -Zmiri-retag-fields
// Checks that the test does not run forever (which relies on a fast path).

#![allow(drop_copy)]
#![allow(dropping_copy_types)]

fn main() {
let array = [(); usize::MAX];
Expand Down

0 comments on commit f247300

Please sign in to comment.