remove redundant var rebindings

This commit is contained in:
Matthias Krüger
2023-08-19 14:09:30 +02:00
parent d06ca0ffaf
commit 269803ee56
3 changed files with 2 additions and 7 deletions

View File

@@ -27,7 +27,6 @@ pub fn test_layout(tcx: TyCtxt<'_>) {
}
fn dump_layout_of(tcx: TyCtxt<'_>, item_def_id: LocalDefId, attr: &Attribute) {
let tcx = tcx;
let param_env = tcx.param_env(item_def_id);
let ty = tcx.type_of(item_def_id).instantiate_identity();
match tcx.layout_of(param_env.and(ty)) {