librustc: Fix path-qualified and cross-crate constants in match patterns.
Test for cross-crate const in match pattern.
auto merge of #5464 : luqmana/rust/const-pat, r=pcwalton

r? @pcwalton