about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry
diff options
context:
space:
mode:
authordianne <diannes.gm@gmail.com>2025-01-02 21:47:54 -0800
committerdianne <diannes.gm@gmail.com>2025-01-20 16:03:36 -0800
commita56f9ad574773c06c511b0caee89382494ee24db (patch)
tree303c0f0d3942461fb25ce5aab10cf42a557a3701 /tests/ui/patchable-function-entry
parentf3d1d47fd84dfcf7f513be1dbad356e74c8f3b2b (diff)
downloadrust-a56f9ad574773c06c511b0caee89382494ee24db.tar.gz
rust-a56f9ad574773c06c511b0caee89382494ee24db.zip
remove Rule 3 from `ref_pat_eat_one_layer_2024`
The debug assertion ensuring that the pattern mutability cap holds
assumes the presence of Rule 3, so it now checks for that. I
considered going back to only tracking the mutability cap when Rule 3
is present, but since the mutability cap is used in Rule 5's
implementation too, the debug assertion would still need to check
which typing rules are present.

This also required some changes to tests:
- `ref_pat_eat_one_layer_2021.rs` had a test for Rule 3; I'll be
handling tests for earlier editions in a later commit, so as a stopgap
I've #[cfg]ed it out.
- One test case had to be moved from `well-typed-edition-2024.rs` to
`borrowck-errors.rs` in order to get borrowck to run on it and emit an
error.
Diffstat (limited to 'tests/ui/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions