Skip to content

Commit

Permalink
WIP pacify tidy in librustc_typeck
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jan 14, 2016
1 parent ec26c49 commit 83f2c8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4142,7 +4142,8 @@ pub fn check_representable(tcx: &ty::ctxt,
// caught by case 1.
match rty.is_representable(tcx, sp) {
Representability::SelfRecursive => {
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);
traits::recursive_type_with_infinite_size_error(tcx, item_def_id).emit();
return false
}
Representability::Representable | Representability::ContainsRecursive => (),
Expand Down

0 comments on commit 83f2c8c

Please sign in to comment.