Skip to content

Remove enable_legacy_verbose_resolver_syntax feature flag#5170

Open
captbaritone wants to merge 2 commits intofacebook:mainfrom
captbaritone:clean-up-legacy
Open

Remove enable_legacy_verbose_resolver_syntax feature flag#5170
captbaritone wants to merge 2 commits intofacebook:mainfrom
captbaritone:clean-up-legacy

Conversation

@captbaritone
Copy link
Contributor

Summary

  • Remove the enable_legacy_verbose_resolver_syntax feature flag and all code that becomes unreachable
  • The flag defaults to disabled, meaning legacy verbose resolver syntax (@onType, @onInterface, @fieldName, @edgeTo) already produces a compiler error — this makes that permanent
  • Delete ~1600 lines of dead legacy code paths, IR types, error variants, constants, and test fixtures

Test plan

  • cargo build -p relay-docblock compiles clean
  • cargo build -p relay-compiler compiles clean
  • cargo build -p relay-lsp compiles clean
  • cargo test -p relay-docblock — all 61 tests pass
  • Updated terse-relay-resolver-forbidden-fields.invalid test fixture — legacy field names now rejected as "Unknown field" at the untyped representation layer

The legacy verbose resolver syntax (@ontype, @onInterface, @Fieldname,
@edgeto) has been deprecated and the flag defaults to disabled, meaning
it already produces a compiler error. This removes the flag entirely
and deletes all unreachable legacy code paths, constants, error types,
IR types, and test fixtures (~1600 lines removed).
@meta-cla meta-cla bot added the CLA Signed label Feb 11, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 12, 2026

@captbaritone has imported this pull request. If you are a Meta employee, you can view this in D93035587.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant