commit | feefbe79185baa2601ca0cb9634cdc997d137b71 | [log] [tgz] |
---|---|---|
author | bors <bors@rust-lang.org> | Wed Oct 26 12:06:26 2022 +0000 |
committer | bors <bors@rust-lang.org> | Wed Oct 26 12:06:26 2022 +0000 |
tree | 9d02f4893eacd70ea7dc43650f9677415cbcc212 | |
parent | 53b6d69e931a52cca44ef94c3b713b4d255754b8 [diff] | |
parent | 67f1d8fe2cfc3da4170cd031e835404811734df5 [diff] |
Auto merge of #13475 - lowr:fix/lookup-impl-method-trait-ref, r=flodiebold fix: Test all generic args for trait when finding matching impl Addresses https://github.com/rust-lang/rust-analyzer/pull/13463#issuecomment-1287816680 When finding matching impl for a trait method, we've been testing the unifiability of self type. However, there can be multiple impl of a trait for the same type with different generic arguments for the trait. This patch takes it into account and tests the unifiability of all type arguments for the trait (the first being the self type) thus enables rust-analyzer to find the correct impl even in such cases.
rust-analyzer is a modular compiler frontend for the Rust language. It is a part of a larger rls-2.0 effort to create excellent IDE support for Rust.
https://rust-analyzer.github.io/manual.html#installation
If you want to contribute to rust-analyzer or are just curious about how things work under the hood, check the ./docs/dev folder.
If you want to use rust-analyzer's language server with your editor of choice, check the manual folder. It also contains some tips & tricks to help you be more productive when using rust-analyzer.
See the corresponding sections of the manual.
For usage and troubleshooting requests, please use “IDEs and Editors” category of the Rust forum:
https://users.rust-lang.org/c/ide/14
For questions about development and implementation, join rust-analyzer working group on Zulip:
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer
rust-analyzer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.