Open TheLostLambda opened 2 months ago
If we decide this is better than having From
and Into
, I'll revisit with a couple of new ideas for how to solve the underlying issues, but for now I'll leave it be, since I'm not actually sure losing those From
and Into
s is worth it...
Very happy to retire this if #371 is merged!
Failing some context tests, I'm pretty sure because
self.wrap_err(msg)
creates acontext_chain_downcast
table, whilst theReport::from_msg(msg, self)
that it's impl clashed with only creates atcontext_downcast
.I messed around and got Rust to segfault, and discovered I was very much in over my head...
I do think it's possible to
impl Diagnostic for Report
, but there's a lot of internal restructuring that would need to happen, and in the best case, we lose theInto<Report>
impl.As with 90%+ of my issues with Rust nowadays, the stabilization of specialization would solve this (I believe), but that could be ages and ages away still...
Ultimately, this is here if anyone is feeling clever / brave, and it's work thinking about if we're okay losing those
From
andInto
impls forReport
, because I don't think there is a clever way around that...