You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1516: Refactor how we convert from `T: Error` to `dyn CargoError` r=jtgeibel a=sgrif
The way we handled this before with a `Shim` struct breaks any later
downcasting we may try to do, and can lead to errors slipping through in
a hard to debug way. It's much easier if we just directly implement
`CargoError` on those types (and lets us get rid of some trivial impls).
This new impl conflicts with `impl<T: CargoError> CargoError for
Box<T>`. It's fine to remove that impl. It means that
`Box<ConcreteType>` no longer implements `CargoError`, but we wouldn't
have boxed the error in the first place unless we needed `dyn
CargoError`.
Co-authored-by: Sean Griffin <sean@seantheprogrammer.com>
Co-authored-by: Justin Geibel <jtgeibel@gmail.com>
0 commit comments