mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Remove comment
This commit is contained in:
parent
c654cc56da
commit
bc32be0fec
1 changed files with 0 additions and 3 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue