Skip to content

lib: enforce impl coherence and give SO symbols an owner - #220

Merged
dslsdzc merged 1 commit into
developfrom
lib-coherence-so
Oct 27, 2026
Merged

dslsdzc merged 1 commit into
developfrom
lib-coherence-so

Conversation

@dslsdzc

@dslsdzc dslsdzc commented Oct 27, 2026

Copy link
Copy Markdown
Owner

impl 孤儿/重复检查;SO 索引符号归属导入库。

- check_impl_coherence: an impl is orphan when both the interface and the type
  are declared by another library; a duplicate (interface, type) pair is a
  conflicting impl. Same-library impls and local-type/foreign-interface impls
  remain valid.
- SO extension symbols materialized from an index file now take the importing
  unit library as owner and are marked pub, instead of owner=-1/globally visible.

Tests cover orphan and duplicate impls. selfhost/bootstrap/check green; canary
5/5 unchanged.
@dslsdzc
dslsdzc merged commit f471ff3 into develop Oct 27, 2026
4 checks passed
@dslsdzc
dslsdzc deleted the lib-coherence-so branch October 27, 2026 02:01
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.

1 participant