3 ms·
The fact that you can just `cargo update` is besides the point. The standard library should never make a breaking change that breaks running code. Why is this t
by xyzzy_plugh 2y ago
The fact that you can just `cargo update` is besides the point. The standard library should never make a breaking change that breaks running code. Why is this the exception? If the problem is that it wouldn't be possible to add new traits, then solve that by gating access to new traits on a minimum version.
It seems like the change should have been made as part of a new edition. This PR seems relevant: https://github.com/rust-lang/std-dev-guide/pull/66 https://github.com/rust-lang/std-dev-guide/pull/66
edit: I can't help but feel like we're moving the goal posts here. "Just don't update Rust" was the sort of response you'd encounter with nightly when nightly was basically required to do anything serious, but this is stable. There is even an accommodation for such changes! Why wasn't it used?
This all just reeks of laziness and disregard for users.
- steveklabnik 2y ago> The standard library should never make a breaking change that breaks running code. Why is this the exception? It is an exception because it is a very minor breakage that is trivial to fix. Sometimes this is worth it. Sometimes it is not. I guess they made the call that it was worth it. As a user who was affected, I don't mind that this happened. > If the problem is that it wouldn't be possible to add new traits, then solve that by gating access to new traits on a minimum version. The issue here is rustc being updated. If the new trait was only available on the new version, the same thing would have happened. I'm not sure this suggestion would fix things. > This all just reeks of laziness and disregard for users. I have many criticisms of the Rust project these days, but I truly believe you are blowing this far out of proportion.
- xyzzy_plugh 2y agoI hate to drag Go into this but I can't help but compare what happened here to the attitude here: https://github.com/golang/go/discussions/55092 https://github.com/golang/go/discussions/55092 My initial impression was that this is boiling the ocean but there's substantial foresight. If I'm blowing this out of proportion then the bar is already too close to the ground for my liking. This is solvable. I don't remember the last time a tool chain update broke my build. It's one thing if it's a bug fix. But for practically everyone to have to update? If 100,000 developers have to trip over this, say, then with your 10 minute estimate that equates to a million minutes, nearly 8 years at 40-hour weeks. This appears to be a problem totally worth solving.
- hulitu 2y ago> It is an exception because it is a very minor breakage that is trivial to fix. Or so it seems. But who cares about quality ? /s
- joshka 2y ago> This PR seems relevant... It's not. The change doesn't have anything to do with the prelude. It was a new conversion was added, where existing code made an assumption that there was only one possible conversion that satisfied an inferred type. (In fact when that code was written it was superfluous as the conversion was actually converting from one type to the same type). That code was removed in https://github.com/time-rs/time/pull/671 https://github.com/time-rs/time/pull/671 The only code that is strongly broken by this is code that doesn't update its dependencies more regularly than its compiler... locking your deps but refusing to do so with your toolchain is just plain weird IMHO.