Skip to content

Commit 83f2c8c

Browse files
committed
WIP pacify tidy in librustc_typeck
1 parent ec26c49 commit 83f2c8c

File tree

1 file changed

+2
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+2
-1
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4142,7 +4142,8 @@ pub fn check_representable(tcx: &ty::ctxt,
41424142
// caught by case 1.
41434143
match rty.is_representable(tcx, sp) {
41444144
Representability::SelfRecursive => {
4145-
traits::recursive_type_with_infinite_size_error(tcx, tcx.map.local_def_id(item_id)).emit();
4145+
let item_def_id = tcx.map.local_def_id(item_id);
4146+
traits::recursive_type_with_infinite_size_error(tcx, item_def_id).emit();
41464147
return false
41474148
}
41484149
Representability::Representable | Representability::ContainsRecursive => (),

0 commit comments

Comments
 (0)