about summary refs log tree commit diff
path: root/src/docs/use_self.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/use_self.txt')
-rw-r--r--src/docs/use_self.txt31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/docs/use_self.txt b/src/docs/use_self.txt
deleted file mode 100644
index bd37ed1e002..00000000000
--- a/src/docs/use_self.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-### What it does
-Checks for unnecessary repetition of structure name when a
-replacement with `Self` is applicable.
-
-### Why is this bad?
-Unnecessary repetition. Mixed use of `Self` and struct
-name
-feels inconsistent.
-
-### Known problems
-- Unaddressed false negative in fn bodies of trait implementations
-- False positive with associated types in traits (#4140)
-
-### Example
-```
-struct Foo;
-impl Foo {
-    fn new() -> Foo {
-        Foo {}
-    }
-}
-```
-could be
-```
-struct Foo;
-impl Foo {
-    fn new() -> Self {
-        Self {}
-    }
-}
-```
\ No newline at end of file