diff options
| author | dianne <diannes.gm@gmail.com> | 2024-12-31 17:59:36 -0800 |
|---|---|---|
| committer | dianne <diannes.gm@gmail.com> | 2025-01-07 23:15:42 -0800 |
| commit | ff165d54cbfc4734ae889e861ef9fd94ecfc5375 (patch) | |
| tree | ecb6efcf61b593a55259d2c3f87c6c7c0b23d2a1 /compiler/rustc_mir_transform/src/coverage/query.rs | |
| parent | 550b0ad0367ba3ade3f672bf46aa7b61fe0236a8 (diff) | |
| download | rust-ff165d54cbfc4734ae889e861ef9fd94ecfc5375.tar.gz rust-ff165d54cbfc4734ae889e861ef9fd94ecfc5375.zip | |
pattern typing cleanup: remove a redundant assignment
As far as I can tell, the assignment removed here will never do anything. `pat_info.max_ref_mutbl` starts at `MutblCap::Mut` for the top-level pattern and is only changed if feature gates are enabled that would result in the statement not being executed. Regardless of what new pattern typing rules are adopted, I don't imagine we want to conditionally reset `max_ref_mutbl` based on edition either, since it'd have consequences for subpatterns in other editions.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions
