Open nox opened 3 years ago
Do we know the rationale behind not printing them in the first place? I presume that unwillingness to print out every member of the io::ErrorKind
enum was the main reason.
Digging way too far in the past I've found out that it actually used to be that way.
It was then changed to always ignore the error kind for custom errors in this commit.
AFAICT, the PR never explains why that change was made. Do you remember, @alexcrichton?
Sorry, I do not.
The implementation of
Display
for io::Error currently completely omits the kind of the error for errors created withio::Error::new
.Do you think it would be possible to change that and include it for all others whose kind is not
io::ErrorKind::Other
? I realise that this is probably a breaking change, but I wonder if there is that much code out there usingio::Error::new
with a kind different toio::ErrorKind::Other
.