fix(build): Correct name of CARGO_CFG_FEATURE (#15420)

### What does this PR try to resolve?

Bad copy/paste in #14902

### How should we test and review this PR?

### Additional information

Found this when looking at how we handle MSRV in `build-rs`
This commit is contained in:
Weihang Lo 2025-04-11 19:21:30 +00:00 committed by GitHub
commit 338e3f8d8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,7 +162,7 @@ mod cfg {
#[doc = requires_msrv!("1.85")]
#[track_caller]
pub fn cargo_cfg_feature() -> Vec<String> {
to_strings(var_or_panic(&cargo_cfg_var("target_feature")), ',')
to_strings(var_or_panic(&cargo_cfg_var("feature")), ',')
}
#[cfg(any())]