Repository navigation
TCB: stop writing internal functions' _FEATURES constants - #4550
Merged
Merged
Conversation
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
enabled auto-merge
November 7, 2026 22:00
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
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.
Follow-up to #4549, which removed
ci/check_variants.py.Trust change:
lean/VerifiedGarbage/TCB/Rust.leaninternalFileno longer writes apub(crate) const VG_<NAME>_FEATURESin eachinternal/<name>.rs. The script removed in #4549 was the only reader of these constants, and nothing reads them now: no generated file, nosrc/code and noci/script names any of the 438. This is a deletion only.cfgattribute of the features its code needs (Printer.featureCfg).The generated diff is only those constants and their
cfggates, removed from 463 internal files.Checks
lake buildofTCB.EmitandVerifiedGarbageTest.Internal.Emit.lean --check.check_lean_public_imports.py.cargo fmt --check.cargo clippy -D warningson x86-64, and--libon AArch64, ARMv7, i686, PPC64LE and RISC-V.No benchmark run: no code that runs changes.
Generated by Claude Code