miette icon indicating copy to clipboard operation
miette copied to clipboard

Implement `From<Box<dyn Diagnostic>>` for `MietteDiagnostic`

Open ManicMarrc opened this issue 1 year ago • 2 comments

This could be useful for creating and modifying a dynamic diagnostic using an already existing diagnostic.

ManicMarrc avatar Aug 20 '23 06:08 ManicMarrc

Did you ever resolve this in anyway? I'm looking into boxing errors to reduce enum sizes, and something like this would help being built-in.

milesj avatar Apr 22 '24 02:04 milesj

I'll take a PR for it if any of y'all want to toss one over :)

zkat avatar Apr 22 '24 04:04 zkat