it's appropriate for the self-hosted compiler though, so this commit moves it from std lib to stage2 src code.