Skip to content

fix: fix FieldInfo for structure instance notation - #7745

Merged
kmill merged 2 commits into
leanprover:masterfrom
kmill:kmill_struct_declranges
Mar 31, 2025
Merged

kmill merged 2 commits into
leanprover:masterfrom
kmill:kmill_struct_declranges

Conversation

@kmill

@kmill kmill commented Mar 31, 2025 •

Copy link
Copy Markdown
Collaborator

This PR fixes an oversight in #7717, and now fields get a FieldInfo node with the correct projection function.

Note that for copied fields "go to definition" still does not go anywhere, since copied projection function has no declaration range. We probably should make such fields instead go to the origin projection function.

@kmill kmill added the changelog-no Do not include this PR in the release changelog label Mar 31, 2025
@kmill kmill changed the title fix: make all structure instance notation fields support 'go to definition' fix: fix FieldInfo for structure instance notation Mar 31, 2025
@kmill
kmill enabled auto-merge March 31, 2025 04:11
@kmill
kmill disabled auto-merge March 31, 2025 04:20
@kmill
kmill added this pull request to the merge queue Mar 31, 2025
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Mar 31, 2025
@ghost

ghost commented Mar 31, 2025

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase e00dd3b25a9541e6993f8588d124e9a53f8394cd --onto 12a21e79c71880424321d62e60449863c504048a. You can force Mathlib CI using the force-mathlib-ci label. (2025-03-31 04:38:36)

Merged via the queue into leanprover:master with commit 96ddeea Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-no Do not include this PR in the release changelog toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant