Repository navigation
Fix unstable-darwin-objc on recent nightlies - #899
Open
SuchAFuriousDeath wants to merge 1 commit into
Open
SuchAFuriousDeath wants to merge 1 commit into
SuchAFuriousDeath wants to merge 1 commit into
Conversation
Since rust-lang/rust#160285, `core::os` is gated behind the `core_os` feature, so `unstable-darwin-objc` failed to compile on recent nightlies. Assisted-by: Claude Code (claude-opus-5-5)
madsmtm
reviewed
Nov 21, 2026
madsmtm
left a comment
Owner
There was a problem hiding this comment.
Thanks for the PR, I'll probably be upgrading the pinned nightly myself, and end up fixing it in the same commit there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #897.
rust-lang/rust#160285 changed the stability gate of
core::osfromdarwin_objcto a newcore_osfeature, soobjc2(which re-exportscore::os::darwin::objc) now needs to enable both.Only
objc2itself needs it: crates using theclass!/sel!macros go through the re-export, andcore'sclass!/selector!macros already haveallow_internal_unstable(core_os). I checkedobjc2andobjc2-foundationwithunstable-darwin-objc(+unstable-static-sel/unstable-static-class) onaarch64-apple-darwinwithnightly-2026-11-20.Note that this makes the feature fail with
unknown featureon nightlies before 2026-10-18, including the currently pinnednightly-2026-08-23. CI doesn't build withunstable-darwin-objc, so it's unaffected.