rustc: allow paths in constants to refer to polymorphic items.
rustc: remove the vestigial "const marking" pass.
rustc: merge check_static into check_const.