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

chore: tidying up Lean.unresolveNameGlobal #4091

Merged
merged 3 commits into from
May 10, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented May 7, 2024

The main loop logic could be simplified, and if let could be used to make control flow more obvious.

Also adds a check for macro scopes to prevent unresolveNameGlobal from returning names with macro scopes in the event there's an alias with one.

This is a follow up to #3946.

The main loop logic could be simplified, and `if let` could be used to make control flow more obvious.

Also adds a check for macro scopes to prevent `unresolveNameGlobal` from returning names with macro scopes in the event there's an alias with one.
@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 May 7, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Std CI can not be attempted yet, as the nightly-testing-2024-05-07 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Std CI should run now. (2024-05-07 15:36:36)

@kmill kmill added this pull request to the merge queue May 10, 2024
Merged via the queue into leanprover:master with commit a1be9ec May 10, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants