about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-11 13:34:51 +0000
committerbors <bors@rust-lang.org>2023-12-11 13:34:51 +0000
commit3aa630672893fff37a3ab83d391267ead3507c97 (patch)
tree7836ee958a94a262650559e7cf1da212bc7c24aa /tests/codegen/src-hash-algorithm
parent457b966b171b09a7e57acb710fbca29a4b3526f0 (diff)
parent8ae42b55e79a127c811d85411ecea204b9529091 (diff)
downloadrust-3aa630672893fff37a3ab83d391267ead3507c97.tar.gz
rust-3aa630672893fff37a3ab83d391267ead3507c97.zip
Auto merge of #16089 - SomeoneToIgnore:fix-parameter-inlay-hints-resolution, r=Veykril
Query for nearest parent block around the hint to resolve

This way, parameter hints will be found for resolution and https://github.com/rust-lang/rust-analyzer/pull/15522#issuecomment-1835896335 will be fixed

Hopefully that also helps with whatever else (lifetimes', etc.) hints in
https://github.com/rust-lang/rust-analyzer/issues/13962

> hints are resolved by querying for textDocument/inlayHint with hint's position turned into a [position-1, position+1] range (instead of the original, much wider document range).
>
> This might lead to issues in the future, with e.g. lifetime hints (currently there's nothing to resolve for them and it's fine) that belong to a certain position, but need to have textDocument/inlayHint query for much bigger range than their position+/-1
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions