Switch back non_local_definitions lint to allow-by-default by Urgau · Pull Request #127015 · rust-lang/rust (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation11 Commits1 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Urgau

@Urgau

as request T-lang is requesting some major changes in the lint inner workings in rust-lang#126768#issuecomment-2192634762

@rustbot

r? @michaelwoerister

rustbot has assigned @michaelwoerister.
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

@rustbot rustbot 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.

T-rustdoc

Relevant to the rustdoc team, which will review and decide on the PR/issue.

labels

Jun 27, 2024

@lqd

@lqd

What’s the PR that made this specific case warn? Was it #120393 as that landed 2 releases ago. If so, we could also nominate for a stable backport in case a point release happens.

@Urgau

yes it was #120393 but since then the implementation was already changed and improved quite a bit, leading to the lint not currently being warn-by-default in any stable releases, one can check that by looking at the current allow-by-default list of current stable

@Urgau

@bors

📌 Commit 0c0dfb8 has been approved by lqd

It is now in the queue for this repository.

@bors bors 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

Jun 27, 2024

@Noratrieb Noratrieb removed the T-rustdoc

Relevant to the rustdoc team, which will review and decide on the PR/issue.

label

Jun 27, 2024

@lqd

leading to the lint not currently being warn-by-default in any stable releases

To make the backport request a bit clearer to people, could you list how? The lint was made warn-by-default in 2f2d5cc so this PR basically reverts that, was it not registered as a lint or what else did not make it the default when that landed in 1.79?

So the PR causing #126768 is not only #120393 but some combination with #122747 and unknown others that are only on beta right now, and this PR will effectively prevent that from landing on stable.

@Urgau

it was put back to allow-by-default in #125183 for 1.79, but left as warn-by-default in 1.80, this PR would make it allow in 1.81 and the backport would make it allow in 1.80

So the PR causing #126768 is not only #120393 but some combination with #122747 and unknown others that are only on beta right now, and this PR will effectively prevent that from landing on stable.

not really, we improved the rules with #122747 but the "root" cause is still the original impl #126768

@lqd

So to answer the question of how we don't have problems on stable is because cfae8b2 prevented the lint from being enabled there, despite being warn-by-default on master. This is clearer, thank you.

@michaelwoerister

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Jun 27, 2024

@GuillaumeGomez

Switch back non_local_definitions lint to allow-by-default

This PR switch back (again) the non_local_definitions lint to allow-by-default as T-lang is requesting some (major) changes in the lint inner workings in rust-lang#126768 (comment).

This PR will need to be beta-backported, as the lint is currently warn-by-default in beta.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 27, 2024

@bors

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 27, 2024

@matthiaskrgr

Switch back non_local_definitions lint to allow-by-default

This PR switch back (again) the non_local_definitions lint to allow-by-default as T-lang is requesting some (major) changes in the lint inner workings in rust-lang#126768 (comment).

This PR will need to be beta-backported, as the lint is currently warn-by-default in beta.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 27, 2024

@bors

jhpratt added a commit to jhpratt/rust that referenced this pull request

Jun 28, 2024

@jhpratt

Switch back non_local_definitions lint to allow-by-default

This PR switch back (again) the non_local_definitions lint to allow-by-default as T-lang is requesting some (major) changes in the lint inner workings in rust-lang#126768 (comment).

This PR will need to be beta-backported, as the lint is currently warn-by-default in beta.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 28, 2024

@matthiaskrgr

Switch back non_local_definitions lint to allow-by-default

This PR switch back (again) the non_local_definitions lint to allow-by-default as T-lang is requesting some (major) changes in the lint inner workings in rust-lang#126768 (comment).

This PR will need to be beta-backported, as the lint is currently warn-by-default in beta.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Jun 28, 2024

@GuillaumeGomez

Switch back non_local_definitions lint to allow-by-default

This PR switch back (again) the non_local_definitions lint to allow-by-default as T-lang is requesting some (major) changes in the lint inner workings in rust-lang#126768 (comment).

This PR will need to be beta-backported, as the lint is currently warn-by-default in beta.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

…llaumeGomez

Rollup of 10 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

…iaskrgr

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 29, 2024

@bors

…iaskrgr

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 29, 2024

@bors

…iaskrgr

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jun 29, 2024

@rust-timer

Rollup merge of rust-lang#127015 - Urgau:non_local_def-tmp-allow, r=lqd

Switch back non_local_definitions lint to allow-by-default

This PR switch back (again) the non_local_definitions lint to allow-by-default as T-lang is requesting some (major) changes in the lint inner workings in rust-lang#126768 (comment).

This PR will need to be beta-backported, as the lint is currently warn-by-default in beta.

@apiraino

Beta backport accepted as per compiler team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle.

@rustbot label +beta-accepted

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jul 6, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jul 6, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jul 6, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jul 6, 2024

@bors

This was referenced

Jul 11, 2024

Labels

beta-accepted

Accepted for backporting to the compiler in the beta channel.

L-non_local_definitions

Lint: non_local_definitions

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.