| commit | 99ce53b1d7dae328b93d9dbd2e8ce8dc83a2b1ba | [log] [tgz] |
|---|---|---|
| author | Chayim Refael Friedman <chayimfr@gmail.com> | Sun Mar 30 20:20:24 2025 +0300 |
| committer | Chayim Refael Friedman <chayimfr@gmail.com> | Tue Apr 22 14:55:43 2025 +0300 |
| tree | bb8cc1c749f3862575c9733a1e76b8ad3b11dffd | |
| parent | 2b4b483af124947463f4ae7da2046863bbe8fe3d [diff] |
Add two new diagnostics: one for mismatch in generic arguments count, and another for mismatch in their kind Also known as E0747 and E0107. And by the way, rewrite how we lower generic arguments and deduplicate it between paths and method calls. The new version is taken almost straight from rustc. This commit also changes the binders of `generic_defaults()`, to only include the binders of the arguments up to (and not including) the current argument. This make it easier to handle it in the rewritten lowering of generic args. It's also how rustc does it.
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/book/installation.html
If you want to contribute to rust-analyzer check out the CONTRIBUTING.md or if you are just curious about how things work under the hood, see the Contributing section of the manual.
If you want to use rust-analyzer's language server with your editor of choice, check the manual. It also contains some tips & tricks to help you be more productive when using rust-analyzer.
See the security and privacy 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.