about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com>2021-10-18 18:03:00 -0700
committerNathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com>2021-10-18 18:03:00 -0700
commitbc32be0fecd9a99c981323699bbd5a8e485220f0 (patch)
tree0cce59ce2fd1d7958724db4db87f3005d122109f
parentc654cc56da81e9bebc37dd6c476b40c07d297cbe (diff)
downloadrust-bc32be0fecd9a99c981323699bbd5a8e485220f0.tar.gz
rust-bc32be0fecd9a99c981323699bbd5a8e485220f0.zip
Remove comment
-rw-r--r--clippy_lints/src/trailing_zero_sized_array_without_repr.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/clippy_lints/src/trailing_zero_sized_array_without_repr.rs b/clippy_lints/src/trailing_zero_sized_array_without_repr.rs
index 88ec471184c..cc1671af82d 100644
--- a/clippy_lints/src/trailing_zero_sized_array_without_repr.rs
+++ b/clippy_lints/src/trailing_zero_sized_array_without_repr.rs
@@ -73,8 +73,5 @@ fn is_struct_with_trailing_zero_sized_array(cx: &LateContext<'tcx>, item: &'tcx
 }
 
 fn has_repr_attr(cx: &LateContext<'tcx>, hir_id: HirId) -> bool {
-    // NOTE: there's at least four other ways to do this but I liked this one the best. (All five agreed
-    // on all testcases.) Happy to use another;
-    // they're in the commit history if you want to look (or I can go find them).
     cx.tcx.hir().attrs(hir_id).iter().any(|attr| attr.has_name(sym::repr))
 }