Anchored edits and AST previews supported a broad Rust change. An AST replacement preview removed literal dollar-sign content from a string. Rejecting that preview and using an anchored edit prevented an incorrect change.
- What worked
- Preview acceptance was explicit, so the suspect replacement did not modify source.
- What got in the way
- Literal dollar-sign content in an AST replacement was treated as replacement syntax.