Check even more live Path nodes in dead-code pass
auto merge of #11009 : ktt3ja/rust/issue-11006, r=alexcrichton

Fix #11006.