-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
syntax: consolidate function parsing in item.rs #65362
Conversation
The downside is that I find it progressively harder to find where the code is. In this case I'd personally keep the code in |
I recommend just setting up a keyword in Firefox
It would be roughly >2100 LOC which is imo too large for any file.
So the reason I'm doing this change specifically is to facilitate the merging of parsing various variants of functions (free, extern, impl, and traits) as we've discussed before and then less logic would be exposed from |
Ok, my personal limit is ~5000 LOC and tidy enforces 3000 which is a bit too small.
And to find something enum-parsing related by looking into where - |
Can we at least keep it in one place inside |
Sure! That would be great. |
r? @petrochenkov Updated.
(Fwiw, I actually wanted to merge all the data type stuff ( |
(Moved one import just a bit to make the diff cleaner...) |
Thanks! |
📌 Commit 4a0c487 has been approved by |
syntax: consolidate function parsing in item.rs Extracted from rust-lang#65324. r? @estebank
syntax: consolidate function parsing in item.rs Extracted from rust-lang#65324. r? @estebank
syntax: consolidate function parsing in item.rs Extracted from rust-lang#65324. r? @estebank
Rollup of 7 pull requests Successful merges: - #65215 (Add long error explanation for E0697) - #65292 (Print lifetimes with backticks) - #65362 (syntax: consolidate function parsing in item.rs) - #65363 (Remove implicit dependencies on syntax::pprust) - #65379 (refactor session::config::build_session_options_and_crate_config) - #65392 (Move `Nonterminal::to_tokenstream` to parser & don't rely directly on parser in lowering) - #65395 (Add some tests for fixed ICEs) Failed merges: r? @ghost
Rollup of 7 pull requests Successful merges: - #65215 (Add long error explanation for E0697) - #65292 (Print lifetimes with backticks) - #65362 (syntax: consolidate function parsing in item.rs) - #65363 (Remove implicit dependencies on syntax::pprust) - #65379 (refactor session::config::build_session_options_and_crate_config) - #65392 (Move `Nonterminal::to_tokenstream` to parser & don't rely directly on parser in lowering) - #65395 (Add some tests for fixed ICEs) Failed merges: r? @ghost
Extracted from #65324.
r? @estebank