rust/crates/ra_syntax
bors[bot] 6d6a995e09
Merge #3040
3040: Rework value parameter parsing r=matklad a=tobz1000

Fixes #2847.

- `Fn__(...)` parameters with idents/patterns no longer parse
- Trait function parameters with arbitrary patterns parse
- Trait function parameters without idents/patterns no longer parse
- `fn(...)` parameters no longer parse with patterns other than a single ident

__Question__: The pre-existing test `param_list_opt_patterns` has been kept as-is, although the name no longer makes sense (it's testing `Fn__(...)` params, which aren't allowed patterns any more). What would be best to do about this?

Co-authored-by: Toby Dimmick <tobydimmick@pm.me>
2020-02-07 13:13:36 +00:00
..
fuzz Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
src Cleanup early return assist 2020-02-07 12:30:39 +01:00
test_data Closure params test 2020-02-06 20:39:27 +00:00
Cargo.toml ⬆️ rowan 2020-01-09 16:33:02 +01:00