Skip to content

Tweak obligation error output - #68377

Merged
bors merged 23 commits into
rust-lang:masterfrom
estebank:fn-obligations-spans
Feb 4, 2020
Merged

Tweak obligation error output#68377
bors merged 23 commits into
rust-lang:masterfrom
estebank:fn-obligations-spans

Conversation

@estebank

@estebankestebank commented Jan 20, 2020

Copy link
Copy Markdown
Contributor

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @matthewjasper

(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 Jan 20, 2020
@rust-highfive

This comment has been minimized.

@estebank
estebankforce-pushed the fn-obligations-spans branch from e651f86 to fbb2a90CompareJanuary 20, 2020 03:22
Comment threadsrc/librustc_typeck/check/wfcheck.rs Outdated
Comment threadsrc/librustc_typeck/check/wfcheck.rs Outdated
Comment threadsrc/librustc_typeck/check/wfcheck.rs Outdated
@estebank
estebankforce-pushed the fn-obligations-spans branch from fbb2a90 to 288ffa9CompareJanuary 25, 2020 22:28
@estebank

Copy link
Copy Markdown
ContributorAuthor

ping

@estebank
estebankforce-pushed the fn-obligations-spans branch from ae5611c to de4b03dCompareJanuary 30, 2020 03:12
@estebank

Copy link
Copy Markdown
ContributorAuthor

cc @rust-lang/wg-diagnostics just because I'm stoked about the result :D

Comment threadsrc/librustc_typeck/check/wfcheck.rs Outdated
Comment threadsrc/librustc/traits/object_safety.rs Outdated
Comment threadsrc/test/ui/issues/issue-20692.stderr Outdated
Comment threadsrc/test/ui/wf/wf-unsafe-trait-obj-match.stderr Outdated
@oli-obk

Copy link
Copy Markdown
Contributor

The new spans are awesome!

Comment threadsrc/librustc/traits/object_safety.rs Outdated
Comment threadsrc/librustc/traits/object_safety.rs Outdated
Comment threadsrc/librustc_typeck/check/wfcheck.rs Outdated
Comment threadsrc/librustc_typeck/check/wfcheck.rs Outdated
@estebank

Copy link
Copy Markdown
ContributorAuthor

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion

@bors

bors commented Jan 31, 2020

Copy link
Copy Markdown
Collaborator

⌛ Trying commit 532f7c2ff15169402902ddcca71fc13833c3fe99 with merge 5a6609e6dd45556e226d848cf5f6b92301748bd9...

@bors

bors commented Jan 31, 2020

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-azure
Build commit: 5a6609e6dd45556e226d848cf5f6b92301748bd9 (5a6609e6dd45556e226d848cf5f6b92301748bd9)

@rust-timer

Copy link
Copy Markdown
Collaborator

Queued 5a6609e6dd45556e226d848cf5f6b92301748bd9 with parent 5371ddf, future comparison URL.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit 5a6609e6dd45556e226d848cf5f6b92301748bd9, comparison URL.

@rust-highfive

This comment has been minimized.

@estebank
estebankforce-pushed the fn-obligations-spans branch from a218555 to 009dc5fCompareFebruary 2, 2020 10:32
@bors

This comment has been minimized.

@estebank
estebankforce-pushed the fn-obligations-spans branch from 009dc5f to 342db71CompareFebruary 2, 2020 19:56
@estebank

Copy link
Copy Markdown
ContributorAuthor

Sorry for this PR becoming so big 😬, it's just addressing a bunch of intimately related issues. Each commit builds on the previous one.

@estebank
estebankforce-pushed the fn-obligations-spans branch from 34990c8 to 865216bCompareFebruary 2, 2020 21:46

@oli-obkoli-obk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a wording, then this lgtm

Comment threadsrc/test/ui/associated-const/associated-const-in-trait.stderr Outdated
@estebank
estebankforce-pushed the fn-obligations-spans branch from 5439b6e to 0e58411CompareFebruary 3, 2020 18:54
@estebank

Copy link
Copy Markdown
ContributorAuthor

Just a wording, then this lgtm

Is that r=oli-obk? 😅

@oli-obk

Copy link
Copy Markdown
Contributor

@bors r+

yes :D I'll communicate that more clearly next time

@bors

bors commented Feb 4, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 0e58411 has been approved by oli-obk

@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 Feb 4, 2020
@bors

bors commented Feb 4, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 0e58411 with merge 5b0caef...

bors added a commit that referenced this pull request Feb 4, 2020
Tweak obligation error output
- Point at arguments or output when fn obligations come from them, or ident when they don't
- Point at `Sized` bound (fix#47990)
- When object unsafe trait uses itself in associated item suggest using `Self` (fix#66424, fix#33375, partially address #38376, cc #61525)
- Point at reason in object unsafe trait with `Self` in supertraits or `where`-clause (cc #40533, cc #68377)
- On implicit type parameter `Sized` obligations, suggest `?Sized` (fix#57744, fix#46683)
@bors

bors commented Feb 4, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-azure
Approved by: oli-obk
Pushing 5b0caef to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Feb 4, 2020
@bors
bors merged commit 0e58411 into rust-lang:masterFeb 4, 2020
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.

Projects

None yet

7 participants

@estebank@rust-highfive@oli-obk@rust-timer@bors@Centril@matthewjasper