We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec26c49 commit 83f2c8cCopy full SHA for 83f2c8c
src/librustc_typeck/check/mod.rs
@@ -4142,7 +4142,8 @@ pub fn check_representable(tcx: &ty::ctxt,
4142
// caught by case 1.
4143
match rty.is_representable(tcx, sp) {
4144
Representability::SelfRecursive => {
4145
- traits::recursive_type_with_infinite_size_error(tcx, tcx.map.local_def_id(item_id)).emit();
+ let item_def_id = tcx.map.local_def_id(item_id);
4146
+ traits::recursive_type_with_infinite_size_error(tcx, item_def_id).emit();
4147
return false
4148
}
4149
Representability::Representable | Representability::ContainsRecursive => (),
0 commit comments