diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-12 22:09:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 22:09:43 +0200 |
| commit | c77191f46b8950d70ea95cf01f8e8cf835a3ac8e (patch) | |
| tree | ca672a4343736fc382283314f92d168f87b5b543 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 8b6d55e782d076515d35012997b9b33d9d5e0b1c (diff) | |
| parent | 585a40963ea59808e74803f8610659a505b145e0 (diff) | |
| download | rust-c77191f46b8950d70ea95cf01f8e8cf835a3ac8e.tar.gz rust-c77191f46b8950d70ea95cf01f8e8cf835a3ac8e.zip | |
Rollup merge of #142034 - estebank:issue-141258, r=davidtwco
Detect method not being present that is present in other tuple types When a method is not present because of a trait bound not being met, and that trait bound is on a tuple, we check if making the tuple have no borrowed types makes the method to be found and highlight it if it does. This is a common problem for Bevy in particular and ORMs in general. <img width="1166" alt="Screenshot 2025-06-04 at 10 38 24 AM" src="https://github.com/user-attachments/assets/d257c9ea-c2d7-42e7-8473-8b93aa54b8e0" /> Address rust-lang/rust#141258. I believe that more combination of cases in the tuple types should be handled (like adding borrows and checking when a specific type needs to not be a borrow while the rest stay the same), but for now this handles the most common case.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
