rust-analyzer/crates/syntax
Johannes Altmanninger 70f972c2fd Fix rustfmt for files that use 2024-edition syntax
"cargo fmt" works fine but "rustfmt" fails to format some files.

	$ rustfmt crates/ide-db/src/search.rs
	error: let chains are only allowed in Rust 2024 or later
	   --> /home/johannes/git/rust-analyzer/crates/ide-db/src/search.rs:298:12
	    |
	298 |         if let &Definition::Module(module) = self
	    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I guess I could work around this by setting my format command to
"cargo fmt -- $filename" instead of "rustfmt $filename".

But it'd be nice if this worked OOTB. Make it so by adding specifying
the edition in rustfmt.toml.  We already have several other places
specifying the edition.

changelog internal
2025-10-23 23:13:13 +02:00
..
fuzz edition = "2024" 2025-03-15 21:32:01 +01:00
src Fix rustfmt for files that use 2024-edition syntax 2025-10-23 23:13:13 +02:00
test_data minor: Simplify impl-ty parse validation 2025-03-25 10:14:40 +01:00
Cargo.toml Don't run doctests 2025-06-23 00:50:22 +03:00
rust.ungram Merge Trait and TraitAlias handling 2025-08-13 15:28:08 +08:00