Skip to content
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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable] Lower lint level for READ_ZERO_BYTE_VEC #103859

Merged
merged 3 commits into from
Nov 2, 2022

Conversation

Mark-Simulacrum
Copy link
Member

This avoids reporting false-positives; see rust-lang/rust-clippy#9274 for details.

cc @rust-lang/clippy -- do we want a direct change landed on stable here? If so, please r+ this PR, otherwise we can just close it. Would appreciate confirmation this is the right change to make as well.

cc @joshtriplett -- filing due to https://rust-lang.zulipchat.com/#narrow/stream/301329-t-devtools/topic/clippy.20false.20positive

This avoids reporting false-positives; see rust-lang/rust-clippy#9274
for details.
@rustbot
Copy link
Collaborator

rustbot commented Nov 2, 2022

@Mark-Simulacrum: no appropriate reviewer found, use r? to override

@rustbot
Copy link
Collaborator

rustbot commented Nov 2, 2022

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against stable. Please double check that you specified the right target!

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 2, 2022
@rustbot
Copy link
Collaborator

rustbot commented Nov 2, 2022

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@Mark-Simulacrum
Copy link
Member Author

@bors rollup=never p=100

@flip1995
Copy link
Member

flip1995 commented Nov 2, 2022

You will probably have to run cd src/tools/clippy && cargo dev update_lints, so that the lint gets moved out of the default group.

Otherwise this sgtm

Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

but you need to run cargo dev update_lints to update the lint categories

@rust-log-analyzer

This comment has been minimized.

LintId::of(redundant_pub_crate::REDUNDANT_PUB_CRATE),
LintId::of(regex::TRIVIAL_REGEX),
LintId::of(strings::STRING_LIT_AS_BYTES),
LintId::of(suspicious_operation_groupings::SUSPICIOUS_OPERATION_GROUPINGS),
LintId::of(trailing_empty_array::TRAILING_EMPTY_ARRAY),
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems right according to the content of the lint definition but obviously isn't a change I made in this PR -- is this OK?

@rust-log-analyzer

This comment has been minimized.

Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. the other changes are from a limbo state this lint was in. Probably due to a weird sync.

Those files are removed anyway with the next sync, so this change is fine 👍

@Mark-Simulacrum
Copy link
Member Author

@bors r=flip1995

@bors
Copy link
Contributor

bors commented Nov 2, 2022

📌 Commit 7c57093 has been approved by flip1995

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 Nov 2, 2022
@bors
Copy link
Contributor

bors commented Nov 2, 2022

⌛ Testing commit 7c57093 with merge e30a6fdeba4586b8bce3bd50628ac2dbc05258b2...

@bors
Copy link
Contributor

bors commented Nov 2, 2022

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 2, 2022
@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Nov 2, 2022
@Mark-Simulacrum
Copy link
Member Author

@bors r=flip1995

@bors
Copy link
Contributor

bors commented Nov 2, 2022

📌 Commit 3100c85 has been approved by flip1995

It is now in the queue for this repository.

@bors bors removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 2, 2022
@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Nov 2, 2022
@bors
Copy link
Contributor

bors commented Nov 2, 2022

⌛ Testing commit 3100c85 with merge 897e375...

@bors
Copy link
Contributor

bors commented Nov 2, 2022

☀️ Test successful - checks-actions
Approved by: flip1995
Pushing 897e375 to stable...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 2, 2022
@bors bors merged commit 897e375 into rust-lang:stable Nov 2, 2022
@rustbot rustbot added this to the 1.65.0 milestone Nov 2, 2022
@Mark-Simulacrum Mark-Simulacrum deleted the stable-next branch November 2, 2022 18:42
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 4, 2022
…load, r=jyn514

Fix artifact version/channel detection for stable

On stable, our artifacts are uploaded with the raw version number (e.g., 1.65.0), not the channel. This adjusts our detection logic to use the version number from src/version when we detect the stable channel.

This is really only important for stable channel re-builds, I think, but those do happen from time to time. I'm backporting a similar commit in rust-lang#103859 to make that PR pass CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants