summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/vec_box.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/src/docs/vec_box.txt')
-rw-r--r--src/tools/clippy/src/docs/vec_box.txt26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/tools/clippy/src/docs/vec_box.txt b/src/tools/clippy/src/docs/vec_box.txt
deleted file mode 100644
index 701b1c9ce..000000000
--- a/src/tools/clippy/src/docs/vec_box.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-### What it does
-Checks for use of `Vec<Box<T>>` where T: Sized anywhere in the code.
-Check the [Box documentation](https://doc.rust-lang.org/std/boxed/index.html) for more information.
-
-### Why is this bad?
-`Vec` already keeps its contents in a separate area on
-the heap. So if you `Box` its contents, you just add another level of indirection.
-
-### Known problems
-Vec<Box<T: Sized>> makes sense if T is a large type (see [#3530](https://github.com/rust-lang/rust-clippy/issues/3530),
-1st comment).
-
-### Example
-```
-struct X {
- values: Vec<Box<i32>>,
-}
-```
-
-Better:
-
-```
-struct X {
- values: Vec<i32>,
-}
-``` \ No newline at end of file