Greetings, and happy new year.
I bring you the gift of breakage.
Yes, that’s right. There’s Rust breakage on the way, and its
significant enough that we need to get the word out. Brace yourselves.
We’ve got two major soundness / type system fixes in the pipeline: the
first for RFC 1214, the second for RFC 136. These are in the class
of breaking changes considered necessary and allowable for
correctness, as originally described in RFC 1122.
We have been introducing this type of breakage in stages across
several release cycles, first by implementing a warning for code that
will be affected then, after a few releases, converting to an
error. The hope is that authors of affected crates will notice the
warning and publish new revisions prior to the stable release that
turns the errors on.
The first breaking change, and most impactful of the two, RFC
1214, is to fix some complex soundness issues around what can be
written in an associated type (see the RFC for details). The changes
here were originally released in version 1.4 on October 29, with (most
of) the new error cases generating warnings about the impending
Current nightlies have turned these warnings into errors, and we’ve
witnessed a large number of crates breaking because of
it. This change is scheduled to hit stable on March 3, so
there is still some time to ameliorate the impact. Below is the list
of crates currently known to be broken because of this change. If you
are the author of one of these I encourage you to take a look.
The second breaking change fixes bugs in the
the analysis that prevents modules leaking private types, as specified
in RFC 136. The new errors generated by this fix will be warnings
in 1.7, released March 3. At some undetermined point in the future
these will become hard errors
This is the first major change of this kind we’ve pushed through, so
it should provide valuable lessons for the next time. We’re happy to
hear feedback about how the process is working for you.
Thanks for your understanding. I apologize for the inconvenience.