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

Move MSRV tests into the lint specific test files #9688

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

Alexendoo
Copy link
Member

@Alexendoo Alexendoo commented Oct 21, 2022

There are currently two ways MSRV tests are done in the ui test suite, adding a case to the #![clippy::msrv = "1.0"] tests/ui/min_rust_version_attr.rs or adding the two msrv_1_xx functions to the test file of the lint in question

This updates the clippy book to suggest the msrv_1_xx style, and replaces the tests in tests/ui/min_rust_version_attr.rs with ones of that style

Almost the entire diff is just moving stuff around as a result, I made sure to check the line numbers the lints are emitted at correspond with the right msrv case, so feel free to only skim that part

changelog: none

@rust-highfive
Copy link

r? @Manishearth

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 21, 2022
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 23, 2022

📌 Commit 815876d has been approved by Manishearth

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 23, 2022

⌛ Testing commit 815876d with merge 28cd1ec...

@bors
Copy link
Contributor

bors commented Oct 23, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 28cd1ec to master...

@bors bors merged commit 28cd1ec into rust-lang:master Oct 23, 2022
@Alexendoo Alexendoo deleted the msrv-tests branch October 23, 2022 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants