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

remove dead inferred outlives testing code #119248

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

lukas-code
Copy link
Member

@lukas-code lukas-code commented Dec 23, 2023

The test_inferred_outlives function was never run, because the code that's actually used for the tests was part of the inferred_outlives_of query, which ran before test_inferred_outlives during type collecting. This PR separates the test code from the query and moves it inside the dedicated function.

@rustbot
Copy link
Collaborator

rustbot commented Dec 23, 2023

r? @cjgillot

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 23, 2023
@cjgillot
Copy link
Contributor

Should we do it the other way instead? Fix the test version to run, and remove the one inside the query?

@lukas-code lukas-code force-pushed the purge-unused-outlives-test branch from 7515ad3 to 49103dc Compare December 23, 2023 13:00
@lukas-code
Copy link
Member Author

Should we do it the other way instead? Fix the test version to run, and remove the one inside the query?

Sure, I've moved the test code from the query over to the test function.

@cjgillot
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Dec 23, 2023

📌 Commit 49103dc has been approved by cjgillot

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 Dec 23, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 23, 2023
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#119231 (Clairify `ast::PatKind::Struct` presese of `..` by using an enum instead of a bool)
 - rust-lang#119232 (Fix doc typos)
 - rust-lang#119245 (Improve documentation for using warning blocks in documentation)
 - rust-lang#119248 (remove dead inferred outlives testing code)
 - rust-lang#119249 (Add spastorino to users_on_vacation)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 66f4665 into rust-lang:master Dec 23, 2023
@rustbot rustbot added this to the 1.77.0 milestone Dec 23, 2023
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 23, 2023
Rollup merge of rust-lang#119248 - lukas-code:purge-unused-outlives-test, r=cjgillot

remove dead inferred outlives testing code

The `test_inferred_outlives` function was never run, because the code that's actually used for the tests was part of the `inferred_outlives_of` query, which ran before `test_inferred_outlives` during type collecting. This PR separates the test code from the query and moves it inside the dedicated function.
@lukas-code lukas-code deleted the purge-unused-outlives-test branch December 23, 2023 17:30
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 24, 2023
…r-errors

Do not fetch HIR in inferred_outlives_of.

Small simplification allowed by rust-lang#119248
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 25, 2023
…r-errors

Do not fetch HIR in inferred_outlives_of.

Small simplification allowed by rust-lang#119248
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 25, 2023
…r-errors

Do not fetch HIR in inferred_outlives_of.

Small simplification allowed by rust-lang#119248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc 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) 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.

4 participants