refactor: Move Apple OSVersion (back) to rustc_target

Also convert OSVersion into a proper struct for better type-safety.
This commit is contained in:
Mads Marquart 2025-02-11 10:43:25 +01:00
parent a4166dabaa
commit d74ce25b65
11 changed files with 125 additions and 100 deletions

View file

@ -811,7 +811,7 @@ fn print_crate_info(
println_info!(
"{}={}",
apple::deployment_target_env_var(&sess.target.os),
apple::pretty_version(apple::deployment_target(sess)),
apple::deployment_target(sess).fmt_pretty(),
)
} else {
#[allow(rustc::diagnostic_outside_of_impl)]