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

fix: handle unimported builtin names for location links #4780

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Jul 18, 2024

The function locationLinksFromDecl could throw an error if the name it is provided doesn't exist in the environment, which is possible if for example an elaborator is a builtin.

Closes #3789

The function `locationLinksFromDecl` could throw an error if the name it is provided doesn't exist in the environment, which is possible if for example an elaborator is a builtin.

Closes leanprover#3789
@kmill kmill requested a review from mhuisi as a code owner July 18, 2024 04:30
@kmill kmill added the awaiting-review Waiting for someone to review the PR label Jul 18, 2024
@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 Jul 18, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 490d16c80d7bdf96a43345d9b307c21d8fbb6a16 --onto ba3565f441a4533490c339ead6d9ee5b1220110b. (2024-07-18 04:47:33)

@kmill kmill added this pull request to the merge queue Jul 27, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 27, 2024
The function `locationLinksFromDecl` could throw an error if the name it
is provided doesn't exist in the environment, which is possible if for
example an elaborator is a builtin.

Closes #3789
Merged via the queue into leanprover:master with commit 906bc58 Jul 27, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review Waiting for someone to review the PR 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.

Unknown constant 'Lean.Elab.Term.elabNumLit' on Go to Definition
3 participants