Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent check_can_mutate crashing on undefined variable (#6044)
# Description ## Problem I noticed that after #6037 got merged, doing `foo(&mut undefined)` when `undefined` isn't declared crashes the compiler. ## Summary ## Additional Context I wonder if instead of using a dummy ID we should use `Option` to represent undefined variables (not for this PR, just for a later larger refactor). ## Documentation Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information