about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-06 04:17:26 +0200
committerGitHub <noreply@github.com>2024-06-06 04:17:26 +0200
commit2611b292c4e8688e7f93d300fe9711f7cc4f53e5 (patch)
tree5c766b22dcfafcd8dbc43f526a306bdb95d97bde /compiler/rustc_builtin_macros/src
parent3b6eefe8bf640237b3546d02be5b624f1395734e (diff)
parentaf75014cc52a97c93eb3d115441337874f525236 (diff)
downloadrust-2611b292c4e8688e7f93d300fe9711f7cc4f53e5.tar.gz
rust-2611b292c4e8688e7f93d300fe9711f7cc4f53e5.zip
Rollup merge of #125168 - Jules-Bertholet:match-ergonomics-2024-align-with-rfc, r=Nadrieril
Match ergonomics 2024: align implementation with RFC

- Remove eat-two-layers (`ref_pat_everywhere`)
- Consolidate `mut_preserve_binding_mode_2024` into `ref_pat_eat_one_layer_2024`
- `&mut` no longer peels off `&`
- Apply "no `ref mut` behind `&`" rule on all editions with `ref_pat_eat_one_layer_2024`
- Require `mut_ref` feature gate for all mutable by-reference bindings

r? ``@Nadrieril``

cc https://github.com/rust-lang/rust/issues/123076

``@rustbot`` label A-edition-2024 A-patterns
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
0 files changed, 0 insertions, 0 deletions