error-chain icon indicating copy to clipboard operation
error-chain copied to clipboard

Remove ChainedError trait

Open brson opened this issue 8 years ago • 5 comments
trafficstars

It's presently not serving much purpose.

brson avatar Jul 24 '17 18:07 brson

I've looked at this. What's the plan for the functionality contained in the trait? I.e. what does the removal look like at a high level?

ahmedcharles avatar Jul 27 '17 04:07 ahmedcharles

That would mean moving the code in the macro.

Yamakaky avatar Jul 27 '17 10:07 Yamakaky

It turns out that implementing DisplayChain requires accessing the backtrace and there's no way to do that without a trait of some form. The only other solution would be moving code from src/lib.rs into the macro, which just seems like it would cause additional bloat.

ahmedcharles avatar Jul 28 '17 06:07 ahmedcharles

Hi, I did a pull request (#244) that address this issue, is there some one to review it ?

kohensu avatar May 15 '18 10:05 kohensu

I'm using ChainedError as associated type for trait. What would be my alternative if/when it's gone?

Ottawan avatar Sep 14 '18 13:09 Ottawan