rustc: Only accept main functions at the crate level. #4433