rustc: merge check_static into check_const.
wip const qualification of non-global expressions