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

Split up astconv.rs #67418

Closed
oli-obk opened this issue Dec 19, 2019 · 13 comments · Fixed by #75711
Closed

Split up astconv.rs #67418

oli-obk opened this issue Dec 19, 2019 · 13 comments · Fixed by #75711
Assignees
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Dec 19, 2019

That file (https://github.com/rust-lang/rust/blob/dab390683196e31116cb61ccf3eec1a4af729def/src/librustc_typeck/astconv.rs) has almost 3k LOC and just 3 lines of documentation on the file (methods and types are documented though). I'm entirely unsure how to process that file. I think splitting it up into submodules (e.g. start by extracting out all functions just handling error reporting into a separate module).

Some of this work can be just mechanical splitting up, but some parts may require you to start understanding at least some of what's going on in the file in order to find a good module structure.

cc @Centril

@oli-obk oli-obk added E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. labels Dec 19, 2019
@TheSamsa
Copy link
Contributor

I'll do it, although I am not familiar with the typeck.
At least the mechanical part is no problem. As to the model structure, I am going to dive into that issue so I can better think of a reasonable structure.

If it is a problem that I am not familiar with the topic, I will back down, no worries.

@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 19, 2019

That's awesome. Please wait until #67268 is merged though (you can subscribe to it so you see when it does get merged), because otherwise you'll just get loads of conflicts.

@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 19, 2019

If you are unsure about the module structure, you can first post a design suggestion here if you want.

@Centril Centril added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Dec 21, 2019
@Centril
Copy link
Contributor

Centril commented Dec 21, 2019

@rustbot assign @TheSamsa

@spadaval
Copy link

spadaval commented Mar 4, 2020

@TheSamsa You still working on this?

@TheSamsa
Copy link
Contributor

TheSamsa commented Mar 4, 2020

Not quite, my other PR is not yet through and I thought I wait for it.

But if you want to do it, just take it.
If not I'll be on it soon.

@basil-cow
Copy link
Contributor

I would like to claim this, if nobody minds

@oli-obk
Copy link
Contributor Author

oli-obk commented Jun 9, 2020

@rustbot assign @Areredify

It's all yours!

@rustbot rustbot assigned basil-cow and unassigned rustbot Jun 9, 2020
@Dylan-DPC-zz
Copy link

@rustbot release-assignment

@CohenArthur
Copy link
Contributor

I'd like to work in this if @Areredify is not on it anymore @Dylan-DPC

@Dylan-DPC-zz
Copy link

@CohenArthur generally it's fine if it's 3 months and there is no pr from the author. you can start working on it

@CohenArthur
Copy link
Contributor

Gotcha, thanks

@CohenArthur
Copy link
Contributor

@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants