Skip to content

TCB: stop writing internal functions' _FEATURES constants - #4550

Merged
alex merged 1 commit into
mainfrom
claude/drop-internal-features
Nov 7, 2026
Merged

alex merged 1 commit into
mainfrom
claude/drop-internal-features

Conversation

@alex

@alex alex commented Nov 7, 2026

Copy link
Copy Markdown
Member

Follow-up to #4549, which removed ci/check_variants.py.

Trust change: lean/VerifiedGarbage/TCB/Rust.lean

internalFile no longer writes a pub(crate) const VG_<NAME>_FEATURES in each internal/<name>.rs. The script removed in #4549 was the only reader of these constants, and nothing reads them now: no generated file, no src/ code and no ci/ script names any of the 438. This is a deletion only.

  • The internal function keeps its cfg attribute of the features its code needs (Printer.featureCfg).
  • Its code and the assembly files are unchanged.
  • Dispatchers and tables of functions use artifacts' and tables' constants, which stay.

The generated diff is only those constants and their cfg gates, removed from 463 internal files.

Checks

  • lake build of TCB.Emit and VerifiedGarbageTest.Internal.
  • Emit.lean --check.
  • Every Static checks step.
  • check_lean_public_imports.py.
  • cargo fmt --check.
  • cargo clippy -D warnings on x86-64, and --lib on AArch64, ARMv7, i686, PPC64LE and RISC-V.

No benchmark run: no code that runs changes.


Generated by Claude Code

They were written only for ci/check_variants.py, which #4549 removed:
nothing reads them now. An internal function keeps its `cfg` attribute
of the features its code needs; its code, and every other generated
file, is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TKUFHE2dqL6Q2PDogxfD5f
@alex
alex enabled auto-merge November 7, 2026 22:00
@alex
alex added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 60450c1 Nov 7, 2026
39 checks passed
@alex
alex deleted the claude/drop-internal-features branch November 7, 2026 22:25
reaperhulk pushed a commit that referenced this pull request Nov 7, 2026
Internal functions no longer carry _FEATURES constants (#4550).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ajQWvdEpusBHttqJ4wzPx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants