Semantic Diff

#9360 Move the compiler-only dict and error helpers out of the AST library

1 commit

ec3592fd87d567bde97f33c948a8d12a7fee30d8..pr-9360

36af448df · cknitt + Claude · Nov 20, 2026, 21:21 UTC

Move the compiler-only dict and error helpers out of the AST library

The AST library had code that only the compiler uses. The v0 PPX encoding of dict literals moves from Ast_dict to a new compiler module, Ast_dict0, so the AST library no longer needs Primitive_modules. Ast_mapper's extension_of_error and Ast_raw's uninterpreted error move to Builtin_attributes, next to error_of_extension, which decodes such errors.