Skip to content

Conversation

@dschrempf
Copy link
Collaborator

@dschrempf dschrempf commented Nov 20, 2025

Instead, we remove duplicate declarations from the DeclIndex, and issue respective warnings.

Also, during selection, when a declaration is unavailable because it depends on an unavailable transitive dependency, we report the SingleLoc of the unavailable transitive dependency. This greatly eases finding the correct parse and select predicates.

TODO:

  • Golden test.
  • Rename redeclaration to "conflicting declarations".
  • Change wording of SharedKey trace (probably even use the same trace message type).

TODO AFTER MERGE:

  • Adapt Nix-based tutorial (no --parse-all required).

@dschrempf dschrempf linked an issue Nov 20, 2025 that may be closed by this pull request
@dschrempf dschrempf marked this pull request as ready for review November 20, 2025 16:07
@dschrempf dschrempf self-assigned this Nov 20, 2025
@dschrempf dschrempf force-pushed the dom/1155/duplicate-declarations branch 17 times, most recently from aaae483 to 1737ffc Compare December 1, 2025 09:21
Instead, we remove duplicate declarations from the `DeclIndex`, and issue
respective warnings.

Also, during selection, when a declaration is unavailable because it depends on
an unavailable transitive dependency, we report the `SingleLoc` of the
unavailable transitive dependency. This greatly eases finding the correct parse
and select predicates.
@dschrempf dschrempf force-pushed the dom/1155/duplicate-declarations branch from 1737ffc to 8fb0c48 Compare December 1, 2025 11:03
@dschrempf dschrempf force-pushed the dom/1155/duplicate-declarations branch 3 times, most recently from e8a4327 to 0de2f2a Compare December 2, 2025 13:29
@dschrempf dschrempf force-pushed the dom/1155/duplicate-declarations branch from 0de2f2a to 517e1b0 Compare December 2, 2025 13:42
Copy link
Collaborator

@edsko edsko left a comment

Choose a reason for hiding this comment

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

Great, will be good to finally get this in after all the hard thinking :)

@dschrempf dschrempf added this pull request to the merge queue Dec 2, 2025
Merged via the queue into main with commit 6633f93 Dec 2, 2025
13 checks passed
@dschrempf dschrempf deleted the dom/1155/duplicate-declarations branch December 2, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support "eponymous" macros

3 participants