Re:Abstracting over ownership in Rust with higher-rank type ...
by physPop on Sunday September 11, 2022 @02:09PM
(#32801854)
> The Rust team's answer to this is "crater runs", where they build the current versions of all packages on crates.io with the new compiler to predict the ecosystem impact of a potential change.
Wow! I never knew this. What a fantastic use case for good, automatic, CI.
Say you had the following code:
This is totally valid, it'll compile, and it's not an unreasonable use case to want to extend standard traits like `io::Write`.The problem is that a newer version of the standard library might have this:
And now that existing code will fail to compile.The Rust team's answer to this is "crater runs", where they build the current versions of all packages on crates.io with the new compiler to predict the ecosystem impact of a potential change.