Skip to content

Don't suggest adding the unexpected cfgs to the build-script it-self - #125412

Merged
bors merged 1 commit into
rust-lang:masterfrom
Urgau:check-cfg-less-build-rs
May 24, 2024
Merged

Don't suggest adding the unexpected cfgs to the build-script it-self#125412
bors merged 1 commit into
rust-lang:masterfrom
Urgau:check-cfg-less-build-rs

Conversation

@Urgau

Copy link
Copy Markdown
Member

This PR adds a check to avoid suggesting to add the unexpected cfgs inside the build-script when building the build-script it-self, as it won't have any effect, since build-scripts applies to their descended target.

Fixes#125368

@rustbot

Copy link
Copy Markdown
Collaborator

r? @pnkfelix

rustbot has assigned @pnkfelix.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 22, 2024
@UrgauUrgau changed the title Don't suggest adding the unexpected cfgs the build-script when building it-selfDon't suggest adding the unexpected cfgs to the build-script it-selfMay 22, 2024
Comment threadcompiler/rustc_lint/src/context/diagnostics/check_cfg.rs Outdated
@Urgau
Urgauforce-pushed the check-cfg-less-build-rs branch from 8e6092d to 1c7859eCompareMay 22, 2024 18:59
@wesleywiser

Copy link
Copy Markdown
Member

Thanks @Urgau!

@bors r+ rollup

@bors

bors commented May 23, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 1c7859e has been approved by wesleywiser

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 23, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request May 23, 2024
…llaumeGomez
Rollup of 6 pull requests
Successful merges:
- rust-lang#125263 (rust-lld: fallback to rustc's sysroot if there's no path to the linker in the target sysroot)
- rust-lang#125345 (rustc_codegen_llvm: add support for writing summary bitcode)
- rust-lang#125362 (Actually use TAIT instead of emulating it)
- rust-lang#125412 (Don't suggest adding the unexpected cfgs to the build-script it-self)
- rust-lang#125445 (Migrate `run-make/rustdoc-with-short-out-dir-option` to `rmake.rs`)
- rust-lang#125452 (Cleanup check-cfg handling in core and std)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request May 24, 2024
…llaumeGomez
Rollup of 6 pull requests
Successful merges:
- rust-lang#125263 (rust-lld: fallback to rustc's sysroot if there's no path to the linker in the target sysroot)
- rust-lang#125345 (rustc_codegen_llvm: add support for writing summary bitcode)
- rust-lang#125362 (Actually use TAIT instead of emulating it)
- rust-lang#125412 (Don't suggest adding the unexpected cfgs to the build-script it-self)
- rust-lang#125445 (Migrate `run-make/rustdoc-with-short-out-dir-option` to `rmake.rs`)
- rust-lang#125452 (Cleanup check-cfg handling in core and std)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 56427d3 into rust-lang:masterMay 24, 2024
@rustbotrustbot added this to the 1.80.0 milestone May 24, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 24, 2024
Rollup merge of rust-lang#125412 - Urgau:check-cfg-less-build-rs, r=wesleywiser
Don't suggest adding the unexpected cfgs to the build-script it-self
This PR adds a check to avoid suggesting to add the unexpected cfgs inside the build-script when building the build-script it-self, as it won't have any effect, since build-scripts applies to their descended target.
Fixesrust-lang#125368
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New nightly feature "rustc-check-cfg" doesn't work as advertised by warning hint (cannot dismiss warning)

6 participants

@Urgau@rustbot@wesleywiser@bors@bjorn3@pnkfelix