diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-05 18:06:09 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-27 08:55:28 +1000 |
| commit | c053e8939bae9c052ff53f58e692408a8099df5d (patch) | |
| tree | 5dfc86adce7558619aa6de246c38e67055e7b845 /tests/ui/lint/lint-owned-heap-memory.rs | |
| parent | 4bc39f028d14c24b04dd17dc425432c6ec354536 (diff) | |
| download | rust-c053e8939bae9c052ff53f58e692408a8099df5d.tar.gz rust-c053e8939bae9c052ff53f58e692408a8099df5d.zip | |
Remove the `box_pointers` lint.
As the comment says, this lint "is mostly historical, and not particularly useful". It's not worth keeping it around.
Diffstat (limited to 'tests/ui/lint/lint-owned-heap-memory.rs')
| -rw-r--r-- | tests/ui/lint/lint-owned-heap-memory.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/ui/lint/lint-owned-heap-memory.rs b/tests/ui/lint/lint-owned-heap-memory.rs deleted file mode 100644 index af47d5c0720..00000000000 --- a/tests/ui/lint/lint-owned-heap-memory.rs +++ /dev/null @@ -1,12 +0,0 @@ -#![allow(dead_code)] -#![forbid(box_pointers)] - - -struct Foo { - x: Box<isize> //~ ERROR type uses owned -} - -fn main() { - let _x: Foo = Foo { x : Box::new(10) }; - //~^ ERROR type uses owned -} |
