about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-04 08:02:05 +0200
committerGitHub <noreply@github.com>2025-04-04 08:02:05 +0200
commit3670f397327169b8dbb4789b8967ff77ecabc07b (patch)
treec49e9c5723193b404c13665d3e1a64bd82687824
parentde1dd8beee76736ca95aa2ed648661e0d38f0857 (diff)
parent5743d381af27a24d12e5272043fa4e21dfa5794a (diff)
downloadrust-3670f397327169b8dbb4789b8967ff77ecabc07b.tar.gz
rust-3670f397327169b8dbb4789b8967ff77ecabc07b.zip
Rollup merge of #138949 - madsmtm:rename-to-darwin, r=WaffleLapkin
Rename `is_like_osx` to `is_like_darwin`

Replace `is_like_osx` with `is_like_darwin`, which more closely describes reality (OS X is the pre-2016 name for macOS, and is by now quite outdated; Darwin is the overall name for the OS underlying Apple's macOS, iOS, etc.).

``@rustbot`` label O-apple
r? compiler
-rw-r--r--src/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consts.rs b/src/consts.rs
index 474475f311f..acb39374628 100644
--- a/src/consts.rs
+++ b/src/consts.rs
@@ -131,7 +131,7 @@ impl<'gcc, 'tcx> StaticCodegenMethods for CodegenCx<'gcc, 'tcx> {
             // will use load-unaligned instructions instead, and thus avoiding the crash.
             //
             // We could remove this hack whenever we decide to drop macOS 10.10 support.
-            if self.tcx.sess.target.options.is_like_osx {
+            if self.tcx.sess.target.options.is_like_darwin {
                 // The `inspect` method is okay here because we checked for provenance, and
                 // because we are doing this access to inspect the final interpreter state
                 // (not as part of the interpreter execution).