typeck/pat.rs: dedup in `check_pat_ref`.
typeck/pat.rs: dedup in `check_pat_ref`.

graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust