rustc_typeck: extract common placeholder type diagnostic code
rustc_typeck: extract common placeholder type diagnostic code

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