Skip to main content

Module diagnostic

Module diagnostic 

Source

Structs§

RelatedSpanLabel

Functions§

edit_distance
Compute the Levenshtein edit distance between two strings.
find_closest_match
Find the closest match to name among candidates, within max_dist edits.
harness_clock_replacement
Map an ambient clock-capability builtin to its harness.clock.* replacement. Returns the new identifier text (including the receiver path) so the bindings/thread-harness-clock repair can replace the call-site identifier in place. The mapping is the source of truth for the E4.3 → E4.6 migration; downstream replatform agents query it via [Code::repair_template].
harness_stdio_replacement
Map an ambient stdio-capability builtin to its harness.stdio.* replacement so the bindings/thread-harness-stdio repair can replace the call when a harness binding is already in scope.
lexer_error_code
normalize_diagnostic_path
Normalize diagnostic filenames lexically for display.
parser_error_code
parser_error_help
parser_error_label
parser_error_message
renamed_stdlib_symbol
Return the replacement for stdlib symbols that were directly renamed.
render_diagnostic
Render a Rust-style diagnostic message.
render_diagnostic_with_code
render_diagnostic_with_related
render_type_diagnostic