Skip to content

Split out the error reporting logic into a separate function - #102476

Merged
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:split_error_path
Sep 29, 2022
Merged

Split out the error reporting logic into a separate function#102476
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:split_error_path

Conversation

@oli-obk

Copy link
Copy Markdown
Contributor

I was trying to read the function and got distracted by the huge block of code in the middle of it. Turns out it only reports diagnostics and all paths within it end in an error. The main function is now more readable imo.

@oli-obkoli-obk added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Sep 29, 2022
@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 29, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @cjgillot

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

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 29, 2022
@cjgillot

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Sep 29, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit aa3fbf8 has been approved by cjgillot

It is now in the queue for this repository.

@borsbors 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 Sep 29, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 29, 2022
Split out the error reporting logic into a separate function
I was trying to read the function and got distracted by the huge block of code in the middle of it. Turns out it only reports diagnostics and all paths within it end in an error. The main function is now more readable imo.
@notriddlenotriddle mentioned this pull request Sep 29, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 29, 2022
Rollup of 7 pull requests
Successful merges:
- rust-lang#102214 (Fix span of byte-escaped left format args brace)
- rust-lang#102426 (Don't export `__wasm_init_memory` on WebAssembly.)
- rust-lang#102437 (rustdoc: cut margin-top from first header in docblock)
- rust-lang#102442 (rustdoc: remove bad CSS font-weight on `.impl`, `.method`, etc)
- rust-lang#102447 (rustdoc: add method spacing to trait methods)
- rust-lang#102468 (tidy: make rustc dependency error less confusing)
- rust-lang#102476 (Split out the error reporting logic into a separate function)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 9807570 into rust-lang:masterSep 29, 2022
@rustbotrustbot added this to the 1.66.0 milestone Sep 29, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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.

5 participants

@oli-obk@rust-highfive@cjgillot@bors@rustbot