Skip to content

use cfg_select instead of cfg_if#763

Open
hkBst wants to merge 1 commit into
rust-lang:masterfrom
hkBst:cfg-select
Open

use cfg_select instead of cfg_if#763
hkBst wants to merge 1 commit into
rust-lang:masterfrom
hkBst:cfg-select

Conversation

@hkBst

@hkBst hkBst commented Jul 2, 2026

Copy link
Copy Markdown
Member

Now that cfg_select is stable since 1.95, we can replace cfg_if. One difference is that cfg_select needs one branch to match. Therefore an empty default branch is sometimes needed.

Comment thread src/symbolize/gimli.rs
// Everything else should doesn't know how to load native libraries.
}
_ => {
// Everything else doesn't know how to load native libraries.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo fix here ^

@hkBst

hkBst commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

I don't see how I broke (macos-latest, nightly)... maybe the object point release will help...

@workingjubilee workingjubilee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not your problem exactly but this should not land before we fix #758 and cut a release as I do not want a further MSRV change to become a precondition for a safety-related update. Thus I am filing this comment so that in later triage it becomes obvious there is something to address (...outside this PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants