Compilation feature for alt-display by default
Author: stevenrooseCreated Sep 23, 2025Updated Apr 12, 2026
I find the default fmt::Display implementation not very useful and kinda always want the #-based alt display. For me, the power of the .context("...") pattern is that it adds context to the error, but if you don't use the alt-display, you're actually just replacing the error message, not adding anything.
Would this project accept a patch that adds an optional feature flag (alt-display or so) that makes that the default display method?
(I would personally go as far as arguing that the alt should be the default.)
Source: dtolnay/anyhow