Skip to content

On short error format, append primary span label to message - #126804

Merged
bors merged 1 commit into
rust-lang:masterfrom
estebank:short-error-primary-label
Aug 6, 2024
Merged

On short error format, append primary span label to message#126804
bors merged 1 commit into
rust-lang:masterfrom
estebank:short-error-primary-label

Conversation

@estebank

Copy link
Copy Markdown
Contributor

The error-format=short output only displays the path, error code and main error message all in the same line. We now add the primary span label as well after the error message, to provide more context.

@estebank
estebank marked this pull request as ready for review June 21, 2024 19:23
@rustbot

Copy link
Copy Markdown
Collaborator

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 21, 2024
@rust-log-analyzer

This comment has been minimized.

@estebank
estebankforce-pushed the short-error-primary-label branch from df6dcc2 to 35a6aecCompareJune 21, 2024 19:54
@rust-log-analyzer

This comment has been minimized.

@estebank
estebankforce-pushed the short-error-primary-label branch from 35a6aec to 57a82e0CompareJune 21, 2024 22:48
@davidtwco

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jun 24, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 57a82e0 has been approved by davidtwco

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 Jun 24, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 24, 2024
…, r=davidtwco
On short error format, append primary span label to message
The `error-format=short` output only displays the path, error code and main error message all in the same line. We now add the primary span label as well after the error message, to provide more context.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 24, 2024
…, r=davidtwco
On short error format, append primary span label to message
The `error-format=short` output only displays the path, error code and main error message all in the same line. We now add the primary span label as well after the error message, to provide more context.
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 24, 2024
…iaskrgr
Rollup of 10 pull requests
Successful merges:
- rust-lang#124460 (Show notice about "never used" of Debug for enum)
- rust-lang#125740 (transmute size check: properly account for alignment)
- rust-lang#126413 (compiletest: make the crash test error message abit more informative)
- rust-lang#126618 (Mark assoc tys live only if the corresponding trait is live)
- rust-lang#126673 (Ensure we don't accidentally succeed when we want to report an error)
- rust-lang#126804 (On short error format, append primary span label to message)
- rust-lang#126868 (not use offset when there is not ends with brace)
- rust-lang#126893 (Eliminate the distinction between PREC_POSTFIX and PREC_PAREN precedence level)
- rust-lang#126899 (Suggest inline const blocks for array initialization)
- rust-lang#126909 (add `@kobzol` to bootstrap team for triagebot)
r? `@ghost`
`@rustbot` modify labels: rollup
@compiler-errors

Copy link
Copy Markdown
Contributor

I believe this failed in a rollup: #126912 (comment)

@bors r- rollup=iffy

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 24, 2024
@estebank

Copy link
Copy Markdown
ContributorAuthor

Blocked on rust-lang/cargo#14135.

@estebank
estebankforce-pushed the short-error-primary-label branch from 57a82e0 to 8b7ff89CompareJuly 31, 2024 23:05
@estebank

Copy link
Copy Markdown
ContributorAuthor

@bors r=davidtwco

@bors

bors commented Jul 31, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 8b7ff89 has been approved by davidtwco

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 31, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 1, 2024
…r=davidtwco
On short error format, append primary span label to message
The `error-format=short` output only displays the path, error code and main error message all in the same line. We now add the primary span label as well after the error message, to provide more context.
@bors

bors commented Aug 1, 2024

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 8b7ff89 with merge 081b3b8...

@rust-log-analyzer

This comment has been minimized.

@bors

bors commented Aug 1, 2024

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 1, 2024
The `error-format=short` output only displays the path, error code and
main error message all in the same line. We now add the primary span label
as well after the error message, to provide more context.
@estebank
estebankforce-pushed the short-error-primary-label branch from 8b7ff89 to 1bbaf6eCompareAugust 6, 2024 04:24
@estebank

Copy link
Copy Markdown
ContributorAuthor

@bors r=davidtwco

@bors

bors commented Aug 6, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 1bbaf6e has been approved by davidtwco

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 Aug 6, 2024
@bors

bors commented Aug 6, 2024

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 1bbaf6e with merge 93ea767...

@bors

bors commented Aug 6, 2024

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: davidtwco
Pushing 93ea767 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Aug 6, 2024
@bors
bors merged commit 93ea767 into rust-lang:masterAug 6, 2024
@rustbotrustbot added this to the 1.82.0 milestone Aug 6, 2024
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (93ea767): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Max RSS (memory usage)

Results (primary -0.0%)

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.

meanrangecount
Regressions ❌
(primary)
3.1%[3.1%, 3.1%]1
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-3.2%[-3.2%, -3.2%]1
Improvements ✅
(secondary)
--0
All ❌✅ (primary)-0.0%[-3.2%, 3.1%]2

Cycles

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

Binary size

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

Bootstrap: 760.794s -> 760.454s (-0.04%)
Artifact size: 336.95 MiB -> 336.90 MiB (-0.02%)

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.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.

7 participants

@estebank@rustbot@rust-log-analyzer@davidtwco@bors@compiler-errors@rust-timer