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

Walk through full path in point_at_path_if_possible #115221

Merged
merged 2 commits into from Aug 26, 2023

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Aug 25, 2023

We already had sufficient information to point at the [u8] in Option::<[u8]>::None (the fallback_param_to_point_at parameter), we just were neither using it nor walking through hir paths sufficiently to encounter it.

This should alleviate the need to add additional logic to extract params in a somewhat arbitrary manner of looking at the grandparent def path: #115219 (comment)

r? @estebank

@rustbot rustbot 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 Aug 25, 2023
@rust-log-analyzer

This comment has been minimized.

@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Aug 25, 2023

📌 Commit 13e8b13 has been approved by estebank

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 Aug 25, 2023
Comment on lines 4 to +5
LL | <() as Foo<N>>::test()
| ^^^^^^^^^^^^^^^^^^^^ the trait `Foo<N>` is not implemented for `()`
| ^ the trait `Foo<N>` is not implemented for `()`
Copy link
Contributor

Choose a reason for hiding this comment

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

Interestingly, I would have expected the span to point at () here, based on the output of the other tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

There's some subtlety in the ordering of what params to prefer over others. Right now we prefer non-self params over self params in qpaths, though arguably pointing at either of the params here is good enough.

@bors
Copy link
Contributor

bors commented Aug 25, 2023

⌛ Testing commit 13e8b13 with merge ac89e16...

@bors
Copy link
Contributor

bors commented Aug 26, 2023

☀️ Test successful - checks-actions
Approved by: estebank
Pushing ac89e16 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 26, 2023
@bors bors merged commit ac89e16 into rust-lang:master Aug 26, 2023
12 checks passed
@rustbot rustbot added this to the 1.74.0 milestone Aug 26, 2023
@compiler-errors compiler-errors deleted the walk-path branch August 26, 2023 01:23
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ac89e16): 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

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.

mean range count
Regressions ❌
(primary)
3.2% [2.9%, 3.7%] 3
Regressions ❌
(secondary)
3.0% [2.3%, 3.7%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.2% [2.9%, 3.7%] 3

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: 631.205s -> 632.821s (0.26%)
Artifact size: 315.72 MiB -> 315.71 MiB (-0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

7 participants