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

Minimize dependencies on trait and infer inside librustc #67970

Merged
merged 18 commits into from
Jan 8, 2020

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Jan 7, 2020

Split from #67953

All commits should pass check on their own.

r? @Centril

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 7, 2020
@Centril
Copy link
Contributor

Centril commented Jan 7, 2020

@bors rollup=never p=10

@cjgillot
Copy link
Contributor Author

cjgillot commented Jan 7, 2020

Rebased.

Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

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

Thanks!

The comment below is the only thing I'd prefer having addressed now before this can land.

However, I also had some other thoughts:

  • Moving ty::wf to traits feels odd because well-formedness of types isn't a semantic property of traits only.

  • The free_region_map should perhaps not be in ty.

That said, I think we can experiment for now and reassess once more things like Ty<'tcx> has been moved out. Perhaps more opportunities for good semantic categorization will arise then.

Also, let's cc @nikomatsakis & @matthewjasper for awareness. :)

src/librustc/traits/drop.rs Outdated Show resolved Hide resolved
@Centril
Copy link
Contributor

Centril commented Jan 7, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Jan 7, 2020

📌 Commit 700ac84 has been approved by Centril

@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 Jan 7, 2020
@matthewjasper
Copy link
Contributor

* The `free_region_map` should perhaps not be in `ty`.

It shouldn't. It's currently in TypeckTables but it's unused there.

@bors
Copy link
Contributor

bors commented Jan 7, 2020

⌛ Testing commit 700ac84 with merge 7e393b5...

bors added a commit that referenced this pull request Jan 7, 2020
Minimize dependencies on trait and infer inside librustc

Split from #67953

All commits should pass check on their own.

r? @Centril
@bors
Copy link
Contributor

bors commented Jan 8, 2020

☀️ Test successful - checks-azure
Approved by: Centril
Pushing 7e393b5 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 8, 2020
@bors bors merged commit 700ac84 into rust-lang:master Jan 8, 2020
@rust-highfive
Copy link
Collaborator

📣 Toolstate changed by #67970!

Tested on commit 7e393b5.
Direct link to PR: #67970

💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra).
💔 clippy-driver on linux: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Jan 8, 2020
Tested on commit rust-lang/rust@7e393b5.
Direct link to PR: <rust-lang/rust#67970>

💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra).
💔 clippy-driver on linux: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra).
krishna-veerareddy added a commit to krishna-veerareddy/rust-clippy that referenced this pull request Jan 8, 2020
JohnTitor added a commit to JohnTitor/rust-clippy that referenced this pull request Jan 8, 2020
bors added a commit to rust-lang/rust-clippy that referenced this pull request Jan 8, 2020
@cjgillot cjgillot deleted the inherent branch January 8, 2020 07:10
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants