251. cpl migrate applies the fixes of migration diagnostics (2026-11-22)
- Decision.
cpl migrate [path]...(crates/cpl-cli/src/migrate.rs) applies only the fixes of diagnostics listed inMIGRATIONS, todayE0503(removed syntax), to every.cpfile under the paths, including brutes and generators ind.tests/. It prints the diff, reports the removed forms that have no mechanical rewrite with their help, and exits 1 while any remain;--checkwrites nothing. - Why. R11.4.3 asks for codemods. A codemod is a diagnostic with a fix,
the same mechanism
cpl fixand the LSP already use, so a stdlib rename ships its deprecated-alias diagnostic with a fix and joinsMIGRATIONSinstead ofmigrategrowing its own rewriting. Pins are not recorded yet: no command writescp.tomlpins today (R11.4.2). - Reverse. Delete
migrate.rsand its entries incrates/cpl-cli, and addmigrateback toSPEC_ONLYincrates/cpl-cli/tests/spec_sync.rs.