rust/compiler/rustc_parse_format/src
Usman Akinyemi 0061a2232d rustc_parse_format: improve diagnostics for unsupported debug = syntax
Detect Python-style f-string debug syntax in format strings and emit a
clear diagnostic explaining that it is not supported in Rust. When the
intended operation can be inferred, suggest the corresponding Rust
alternative e.g from `println!("{=}", x)` to `dbg!({x})`.

Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
2026-02-06 00:44:03 +05:30
..
lib.rs rustc_parse_format: improve diagnostics for unsupported debug = syntax 2026-02-06 00:44:03 +05:30
tests.rs Add ParseMode::Diagnostic unit tests 2025-06-09 16:28:58 +02:00