diff options
| author | bors <bors@rust-lang.org> | 2024-02-27 16:01:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-27 16:01:45 +0000 |
| commit | a41cec9f7c6dbbabdc9134879a640ceadd3a516d (patch) | |
| tree | 3d1f3aaa7905e6fbfa345d2dfe6962fed1d0a836 /compiler/rustc_codegen_llvm/src | |
| parent | a3236be9d7a8179ac4a997858138a4d6c260a451 (diff) | |
| parent | 612443111b207044d4a7b204d2eab9a1d2ee914c (diff) | |
| download | rust-a41cec9f7c6dbbabdc9134879a640ceadd3a516d.tar.gz rust-a41cec9f7c6dbbabdc9134879a640ceadd3a516d.zip | |
Auto merge of #16696 - ShoyuVanilla:fix-goto-deref-mut, r=Veykril
fix: Goto definition for `deref_mut` Fixes #16520 https://github.com/rust-lang/rust-analyzer/blob/a3236be9d7a8179ac4a997858138a4d6c260a451/crates/hir/src/source_analyzer.rs#L375-L393 As we can see from the above, current implementation routes all dereferencing prefix operations to `Deref::deref` implementation, not regarding mutabilities. https://github.com/rust-lang/rust-analyzer/blob/a3236be9d7a8179ac4a997858138a4d6c260a451/crates/hir-ty/src/infer/mutability.rs#L134-L151 Since we are resolving them already in mutability inferences, we can use those results for proper `deref` / `deref_mut` routing.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
