Skip to content

Commit 338e3f8

Browse files
authored
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`
2 parents a7e0e44 + bb34921 commit 338e3f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/build-rs/src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ mod cfg {
162162
#[doc = requires_msrv!("1.85")]
163163
#[track_caller]
164164
pub fn cargo_cfg_feature() -> Vec<String> {
165-
to_strings(var_or_panic(&cargo_cfg_var("target_feature")), ',')
165+
to_strings(var_or_panic(&cargo_cfg_var("feature")), ',')
166166
}
167167

168168
#[cfg(any())]

0 commit comments

Comments
 (0)