]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #96483 - Urgau:check-cfg-target_feature, r=petrochenkov
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Thu, 28 Apr 2022 00:40:37 +0000 (02:40 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 00:40:37 +0000 (02:40 +0200)
commit89db345859a3f4e33aa334713767e79870319369
treedd98eee53ea80c1870ba82851d369af60a09d649
parent4c628bbb1c266a8513b364dca5ae7e311a1e0777
parentbeb4e16f055aa7925194fd2c360105a6d55f10f6
Rollup merge of #96483 - Urgau:check-cfg-target_feature, r=petrochenkov

Add missing `target_feature` to the list of well known cfg names

This PR adds the missing `target_feature` cfg name to the list of well known cfg names.

It was notice missing in https://github.com/rust-lang/rust/issues/96472 thanks to `@bjorn3,` the reason being that `--check-cfg=names()` automatically inherit the names passed by `--cfg` (or internal to `rustc`) and is seems that the vast majority of targets have at least one target feature leading to `target_feature` being a well known name in most target but it should always be a well known name so this PR add it unconditionally to list.

r? `@petrochenkov`
compiler/rustc_session/src/config.rs