librustc: Terminate name searches at the nearest module scope for paths ...

...that contain at least two components

r? @graydon