3 ms·
> there is no compiler warning when you mix up traits coming from different versions of a crate. You just get impossible-seeming errors. There is a check when
by yorwba 9y ago
> there is no compiler warning when you mix up traits coming from different versions of a crate. You just get impossible-seeming errors.
There is a check when error messages are generated to detect messages like "expected X, got X" and add a warning that you might be mixing different versions of the same crate.
There are probably some cases that slip through, but if you file an issue with your specific example or look into the compiler yourself, you might get it fixed (my one patch in rustc handles "a::b::X" being reexported and accessed as "a::X").