logoalt Hacker News

pjmlptoday at 10:02 AM1 replyview on HN

How do you expect a compiler to be able to mix and match changes across editions between crates, if those happen to be changes in semantic behaviour?


Replies

aw1621107today at 2:01 PM

Depends on the change. Obviously the compiler doesn't need to care about cross-edition compatibility between crates if the changes in question don't impact the public API. Otherwise, I'd expect the compiler to canonicalize the changes, and from what I understand that is precisely how edition changes are chosen/designed/implemented.