rust/library/core
Jacob Pratt 8075b89aa6
Rollup merge of #152508 - arferreira:improve-write-macro-diagnostic, r=Mark-Simulacrum
Improve write! and writeln! error when called without destination

Fixes rust-lang/rust#152493

Adds catch-all arms to `write!` and `writeln!` macros so that calling them without a destination (e.g., `write!("S")` instead of `write!(f, "S")`) gives a clear error instead of the cryptic "unexpected end of macro invocation" pointing at macro internals.

r? @estebank
2026-02-14 23:17:31 -05:00
..
src Rollup merge of #152508 - arferreira:improve-write-macro-diagnostic, r=Mark-Simulacrum 2026-02-14 23:17:31 -05:00
Cargo.toml add autodiff examples 2025-11-16 23:35:37 -05:00