librustc: Check restrictions on all subcomponents of a path when moving
it. r=nikomatsakis
auto merge of #11465 : pcwalton/rust/borrow-check-bug, r=pcwalton

it. r=nikomatsakis