]> git.lizzy.rs Git - rust.git/commit
Fix a typecheck regression with constant borrowed pointers in patterns
authorJakub Bukaj <jakub@jakub.cc>
Sun, 26 Oct 2014 21:35:26 +0000 (22:35 +0100)
committerJakub Bukaj <jakub@jakub.cc>
Sun, 26 Oct 2014 21:35:26 +0000 (22:35 +0100)
commitf16744ce521537346188f984fdc50ea6c7c6eda3
tree5b21ec77df896d420a751270f34c3e6d50439496
parent80e5fe1a56bb95e8e89d5f8f0ff5122583bb5336
Fix a typecheck regression with constant borrowed pointers in patterns

Change the eqtype relationship to be a suptype relationship instead.

Fixes #18350.
Fixes #18352.
src/librustc/middle/typeck/check/_match.rs
src/test/run-pass/issue-18352.rs [new file with mode: 0644]