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

Migrate more of rustc_parse to SessionDiagnostic #101619

Merged
merged 16 commits into from
Sep 28, 2022

Conversation

Xiretza
Copy link
Contributor

@Xiretza Xiretza commented Sep 9, 2022

Still far from complete, but I thought I'd add a checkpoint here because rebasing was starting to get annoying.

@rustbot rustbot added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 9, 2022
@rust-highfive
Copy link
Collaborator

r? @davidtwco

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

@rustbot
Copy link
Collaborator

rustbot commented Sep 9, 2022

rustc_error_messages was changed

cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 9, 2022
compiler/rustc_parse/src/parser/expr.rs Outdated Show resolved Hide resolved
compiler/rustc_parse/src/parser/expr.rs Outdated Show resolved Hide resolved
.collect(),
},
}
.into_diagnostic(&self.sess.span_diagnostic);
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should keep sess.create_err given that it does exactly this and this might be more discoverable? Or vice-versa?

compiler/rustc_parse/src/parser/expr.rs Outdated Show resolved Hide resolved
compiler/rustc_parse/src/parser/expr.rs Outdated Show resolved Hide resolved
compiler/rustc_parse/src/parser/attr.rs Outdated Show resolved Hide resolved
@Xiretza
Copy link
Contributor Author

Xiretza commented Sep 13, 2022

I'll rebase this and address the review comments once #101558 has landed.

@bors

This comment was marked as resolved.

@Xiretza Xiretza force-pushed the rustc_parse-session-diagnostics branch from 8a0adca to 6086a8e Compare September 15, 2022 07:28
@bors

This comment was marked as resolved.

@Xiretza Xiretza force-pushed the rustc_parse-session-diagnostics branch from 6086a8e to c704ebe Compare September 21, 2022 18:31
@rustbot
Copy link
Collaborator

rustbot commented Sep 21, 2022

rustc_macros::diagnostics was changed

cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki

@bors

This comment was marked as resolved.

@davidtwco davidtwco mentioned this pull request Sep 22, 2022
84 tasks
Copy link
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

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

Apologies for the delay in reviewing this, this looks good to me, I've left one or two comments about places where it looks like we're interpolating English but those have FIXMEs in the source so maybe you're still to address them?

@Xiretza Xiretza force-pushed the rustc_parse-session-diagnostics branch 3 times, most recently from 57c1ee7 to 07affa6 Compare September 22, 2022 17:47
@bors

This comment was marked as resolved.

Copy link
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

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

r=me after rebase

@Xiretza Xiretza force-pushed the rustc_parse-session-diagnostics branch from 07affa6 to a6b373b Compare September 26, 2022 16:41
@Xiretza
Copy link
Contributor Author

Xiretza commented Sep 26, 2022

Hm, can/should I do this?

@bors r=davidtwco

Edit: yep, not surprised. I thought I had seen a non-Member do it the other day, so I was curious :)

@bors
Copy link
Contributor

bors commented Sep 26, 2022

@Xiretza: 🔑 Insufficient privileges: Not in reviewers

@bors

This comment was marked as resolved.

@davidtwco
Copy link
Member

Hm, can/should I do this?

@bors r=davidtwco

Edit: yep, not surprised. I thought I had seen a non-Member do it the other day, so I was curious :)

Sorry, it was just a note to myself or anyone else with privileges should they stumble upon this - I'll r+ when rebased again.

@Xiretza Xiretza force-pushed the rustc_parse-session-diagnostics branch from a6b373b to d7c6457 Compare September 27, 2022 18:30
@davidtwco
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Sep 28, 2022

📌 Commit d7c6457 has been approved by davidtwco

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 Sep 28, 2022
@bors
Copy link
Contributor

bors commented Sep 28, 2022

⌛ Testing commit d7c6457 with merge 09ae784...

@bors
Copy link
Contributor

bors commented Sep 28, 2022

☀️ Test successful - checks-actions
Approved by: davidtwco
Pushing 09ae784 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 28, 2022
@bors bors merged commit 09ae784 into rust-lang:master Sep 28, 2022
@rustbot rustbot added this to the 1.66.0 milestone Sep 28, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (09ae784): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.2% [-2.2%, -2.2%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean1 range count2
Regressions ❌
(primary)
3.4% [3.4%, 3.4%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.4% [3.4%, 3.4%] 1

Cycles

This benchmark run did not return any relevant results for this metric.

Footnotes

  1. the arithmetic mean of the percent change 2

  2. number of relevant changes 2

@Xiretza Xiretza deleted the rustc_parse-session-diagnostics branch October 22, 2022 06:50
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
…ics, r=davidtwco

Migrate more of rustc_parse to SessionDiagnostic

Still far from complete, but I thought I'd add a checkpoint here because rebasing was starting to get annoying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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. 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.

6 participants