feature - 161 implement RFC 027 phase 1-3: groundwork and validation fixes#176
Merged
dannymeijer merged 5 commits intoMar 12, 2026
Merged
Conversation
… and editor tooling. This consolidates the registry-backed vocab/highlighting work, simplifies stdlib source-module handling, and closes several typechecking/emission regressions found during validation so the RFC 027 foundation is stable before RFC 031 work begins.
This was
linked to
issues
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR closes out RFC 027 phase 1-3 by landing the remaining compiler/tooling groundwork and folding in the regressions found during validation.
It adds the new registry-backed highlighting/generation plumbing, simplifies stdlib source-module routing around
__incan_std, and fixes correctness issues in Rust interop field emission,Resultconstructor inference, explicit generic bound checking, and VS Code keyword highlighting. The goal is to leave the branch stable enough to merge before starting RFC 031.Type of change
docs/RFCs/*)Area(s)
Select the primary areas touched (used for review routing; labels are managed separately):
Key details
assertnow highlights as flow control rather than async syntax; Rust import field access likeconsts.PInow emits valid Rust path syntax;Ok(...)/Err(...)payload mismatches are reported correctly instead of being masked by the enclosing return type.incan_core::lang; stdlib handling now consistently routesstd.*modules through emittedcrate::__incan_std::*source modules; typechecker call validation restores explicit generic-bound enforcement and generic constructor result typing.Testing / verification
make test/cargo testmake examples(if relevant)incan fmt --check .(if relevant)Manual verification notes:
cargo testcargo clippy --all-targets --all-featuresmkdocs build --strictcargo run --bin generate_vscode_grammar_keywordsconsts.PI->consts::PI)Ok(...)/Err(...)payload mismatch detectionassertDocs impact
If docs updated:
workspaces/docs-site/docs/RFCs/027_incan_vocab_crate.md,workspaces/docs-site/docs/RFCs/031_library_system_phase1.md,workspaces/docs-site/docs/RFCs/034_incan_pub_registry.md,workspaces/docs-site/docs/contributing/explanation/architecture.md,workspaces/docs-site/docs/contributing/how-to/extending_language.md,workspaces/docs-site/docs/release_notes/0_2.md,editors/vscode/README.mdChecklist