Skip to content

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Sep 6, 2024

This PR removes the "test harness" suppression of the missing_docs lint to be able to fulfil #[expect] (expectations) as it is now "relevant".

I think the goal was to maybe avoid false-positive while linting on public items under #[cfg(test)] but with effective visibility we should no longer have any false-positive.

Another possibility would be to query the lint level and only emit the lint if it's of expect level, but that is even more hacky.

Fixes #130021

try-job: x86_64-gnu-aux

@rustbot
Copy link
Collaborator

rustbot commented Sep 6, 2024

r? @lcnr

rustbot has assigned @lcnr.
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. labels Sep 6, 2024
@rust-log-analyzer

This comment has been minimized.

@lcnr
Copy link
Contributor

lcnr commented Sep 6, 2024

r? compiler

@rustbot rustbot assigned petrochenkov and unassigned lcnr Sep 6, 2024
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 7, 2024

📌 Commit ae661dd has been approved by petrochenkov

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 Sep 7, 2024
@matthiaskrgr
Copy link
Member

I'm wondering if this could have the potential to break cargo tests #130109 (comment)

@workingjubilee
Copy link
Member

@workingjubilee
Copy link
Member

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 9, 2024
@workingjubilee
Copy link
Member

@bors try

@bors
Copy link
Collaborator

bors commented Sep 9, 2024

⌛ Trying commit ae661dd with merge d453327...

@rust-log-analyzer

This comment has been minimized.

@MrCroxx
Copy link

MrCroxx commented Sep 20, 2024

Hi, thanks for the contribution. May I ask if this PR would be cherry-picked to a patch release like 1.81.1?

@Urgau
Copy link
Member Author

Urgau commented Sep 20, 2024

Due to our fast release cycle, we don't backport to stable simple bug-fixes, only security fixes or major regressions fixes.

#[expect(missing_bugs)] never worked on stable, so it's not technically a regression either, making it unlikely to get beta-backported either.

@workingjubilee
Copy link
Member

great new lint, expect(missing_bugs) so that you can be sure your code is buggy :^)

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. relnotes Marks issues that should be documented in the release notes of the next release. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive unfulfilled_lint_expectations with either of --tests or --all-targets

10 participants