Skip to content

Commit 0296d49

Browse files
committed
fix layout_test visitor name
1 parent f4c675c commit 0296d49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_passes/layout_test.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ use rustc_span::symbol::sym;
1717
pub fn test_layout(tcx: TyCtxt<'_>) {
1818
if tcx.features().rustc_attrs {
1919
// if the `rustc_attrs` feature is not enabled, don't bother testing layout
20-
tcx.hir().krate().visit_all_item_likes(&mut VarianceTest { tcx });
20+
tcx.hir().krate().visit_all_item_likes(&mut LayoutTest { tcx });
2121
}
2222
}
2323

24-
struct VarianceTest<'tcx> {
24+
struct LayoutTest<'tcx> {
2525
tcx: TyCtxt<'tcx>,
2626
}
2727

28-
impl ItemLikeVisitor<'tcx> for VarianceTest<'tcx> {
28+
impl ItemLikeVisitor<'tcx> for LayoutTest<'tcx> {
2929
fn visit_item(&mut self, item: &'tcx hir::Item<'tcx>) {
3030
let item_def_id = self.tcx.hir().local_def_id(item.hir_id);
3131

@@ -42,7 +42,7 @@ impl ItemLikeVisitor<'tcx> for VarianceTest<'tcx> {
4242
fn visit_impl_item(&mut self, _: &'tcx hir::ImplItem<'tcx>) {}
4343
}
4444

45-
impl VarianceTest<'tcx> {
45+
impl LayoutTest<'tcx> {
4646
fn dump_layout_of(&self, item_def_id: DefId, item: &hir::Item<'tcx>, attr: &Attribute) {
4747
let tcx = self.tcx;
4848
let param_env = self.tcx.param_env(item_def_id);

0 commit comments

Comments
 (0)