I did “cargo fix —-edition” like the guide said and it added the word “ref” before variable names in certain places, which made the compiler complain. So I had to go through and remove them all.
So it may be easier to fix things manually than rely on cargo fix.
Hi! Does anyone know why I still, after updating `rustup` and the `edition` in `Cargo.toml`, need to run `cargo +nightly fmt `? I have a `rustfmt.toml` that contains this:
From what I understand, when the schedule started to slip, the team made a decision to not do a death march just so it happened two months ago instead of today. This seems healthy to me.
On the other hand, people will be able to use Rust 2024 in production in a few month, if not now. While most C++ codebase are still stuck with C++17 or older.
dabinat|1 year ago
So it may be easier to fix things manually than rely on cargo fix.
unknown|1 year ago
[deleted]
the__alchemist|1 year ago
steveklabnik|1 year ago
A new edition doesn't mean features are automatically stabilized.
I agree with these two specifically, it would be great to have them in stable. They're not yet though: https://github.com/rust-lang/rustfmt/issues/5083
Diggsey|1 year ago
bitbasher|1 year ago
piotrpdev|1 year ago
GolDDranks|1 year ago
unknown|1 year ago
[deleted]
jenadine|1 year ago
steveklabnik|1 year ago
jenadine|1 year ago
satvikpendem|1 year ago
pjmlp|1 year ago