We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c62e36b commit 7b49678Copy full SHA for 7b49678
src/librustc_passes/layout_test.rs
@@ -30,10 +30,10 @@ impl ItemLikeVisitor<'tcx> for LayoutTest<'tcx> {
30
let item_def_id = self.tcx.hir().local_def_id(item.hir_id);
31
32
match item.kind {
33
- ItemKind::TyAlias(..) |
34
- ItemKind::Enum(..) |
35
- ItemKind::Struct(..) |
36
- ItemKind::Union(..) => {
+ ItemKind::TyAlias(..)
+ | ItemKind::Enum(..)
+ | ItemKind::Struct(..)
+ | ItemKind::Union(..) => {
37
for attr in self.tcx.get_attrs(item_def_id).iter() {
38
if attr.check_name(sym::rustc_layout) {
39
self.dump_layout_of(item_def_id, item, attr);
0 commit comments