Skip to main content

Module auto_fix

Module auto_fix 

Source
Expand description

Auto-fix suggestions for deterministic drift rules.

Some rules are mechanically fixable:

  • symbol_absence: doc references a renamed/missing symbol → suggest the new name
  • ghost_command: CI references a deleted crate/binary → suggest removal
  • compile_failure: example doesn’t compile → surface the rustc diagnostic

This module produces AutoFix structs that either auto-apply (with --fix) or are surfaced as suggestions in the report.

Structs§

AutoFix
A suggested fix for a divergence.

Functions§

apply_fixes
Auto-fix runner: apply all auto-applicable fixes.
build_example_narrative_prompt
build_markdown_correction_prompt
build_outdated_logic_context
collect_public_signatures
format_as_comments
slice_example_narrative
slice_markdown_section
suggest_fix
Try to generate an auto-fix for a divergence.