Tags: harpsword/rust-analyzer
Tags
Auto merge of rust-lang#15752 - Young-Flash:replace_is_method_with_if… …_let_method, r=HKalbasi feat: add replace_is_ok_with_if_let_ok assist following rust-lang#15743
Merge rust-lang#11865 11865: Fix: Select correct insert position for disabled group import r=jonasbb a=jonasbb The logic for importing with and without `group_imports` differed significantly when no previous group existed. This lead to the problem of using the wrong position when importing inside a module (rust-lang#11585) or when inner attributes are involved. The existing code for grouped imports is better and takes these things into account. This PR changes the flow to use the pre-existing code for adding a new import group even for the non-grouped import settings. Some coverage markers are updated and the `group` is removed, since they are now invoked in both cases (grouping and no grouping). Tests are updated and two tests (empty module and inner attribute) are added. Fixes rust-lang#11585 Co-authored-by: Jonas Bushart <jonas@bushart.org>
Merge rust-lang#11833 11833: internal: Move mismatched arg count diagnostic to inference r=flodiebold a=flodiebold This means we only need to handle legacy const generics in one place, and it fits there especially since there will be more diagnostics coming. Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Merge rust-lang#11690 11690: feat: Add an assist for inlining type aliases r=Veykril a=steven-joruk I'm working towards implementing rust-lang#10881, but I'd like to get this in first with earlier feedback. Is `inline_type_alias` a good enough name? I guess the follow up assist would be called `inline_type_alias_into_all_users` based on that.   Co-authored-by: Steven Joruk <steven@joruk.com>
Merge rust-lang#11696 11696: editors/code: fix nixos detection r=lnicola a=cab404 Problem: NixOS started using quotes around it's id field in /etc/os-release Solution: Parially parsing os-release, and detecting, whether `nixos` appears anywhere in "ID=" field\ See rust-lang#11695 Closes rust-lang#11695 Co-authored-by: Vladimir Serov <me@cab404.ru>
Merge rust-lang#11639 11639: internal: Re-arrange ide_db modules r=Veykril a=Veykril Thins out the `helpers` module by giving some items more appropriate places to live bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Merge rust-lang#11573 11573: refactorings and FIXME fixes in text edit r=lnicola a=HansAuger This is mainly me learning some rust, and only anecdotally about addressing some `fixme`s. Feel free to nope :) There is a follow up PR in the pipeline which tackles the other two `fixme`s but it's a bit more invasive. So I wanted to get this out of the way Co-authored-by: Moritz Vetter <mv@3yourmind.com>
Merge rust-lang#11512 11512: internal: Remove `name` fields from `MacroCallKind` r=Veykril a=Veykril Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Merge rust-lang#11512 11512: internal: Remove `name` fields from `MacroCallKind` r=Veykril a=Veykril Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Merge rust-lang#11464 11464: minor: Bump deps r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
PreviousNext