librustc: Fix pattern matching on cross crate newtype structs.
Add test for cross crate newtype struct in match pattern.
auto merge of #6121 : luqmana/rust/newtype-cc, r=graydon

#6086