rust-analyzer/crates
A4-Tacks a977cb1ce8
Add AsRef and Borrow for generate_mut_trait_impl
- AsRef -> AsMut
- Borrow -> BorrowMut

Example
====================

```rust
//- minicore: as_ref
struct Foo(i32);

impl<T> core::convert::AsRef$0<i32> for Foo {
    fn as_ref(&self) -> &i32 {
        &self.0
    }
}
```
->
```rust
struct Foo(i32);

$0impl<T> core::convert::AsMut<i32> for Foo {
    fn as_mut(&mut self) -> &mut i32 {
        &self.0
    }
}

impl<T> core::convert::AsRef<i32> for Foo {
    fn as_ref(&self) -> &i32 {
        &self.0
    }
}
```
2025-07-16 17:16:56 +08:00
..
base-db Bump salsa 2025-07-03 10:05:16 +02:00
cfg Don't run doctests 2025-06-23 00:50:22 +03:00
edition chore: Bump Edition::CURRENT to 2024 2025-03-17 12:29:19 +01:00
hir Merge pull request #20219 from ChayimFriedman2/expr-store-mem 2025-07-11 14:25:39 +00:00
hir-def remove now useless [allow(unused_lifetimes)] 2025-07-13 05:43:05 -04:00
hir-expand Merge pull request #20210 from ChayimFriedman2/naked-asm-safe 2025-07-10 06:28:49 +00:00
hir-ty Format and bump rustc crates 2025-07-15 17:41:08 +03:00
ide Merge from rust-lang/rust 2025-07-15 17:27:46 +03:00
ide-assists Add AsRef and Borrow for generate_mut_trait_impl 2025-07-16 17:16:56 +08:00
ide-completion Fix assoc type where clause position 2025-07-12 23:48:41 +08:00
ide-db Merge from rust-lang/rust 2025-07-15 17:27:46 +03:00
ide-diagnostics Infer lifetimes for GATs in expression/pattern position 2025-07-15 01:15:33 +03:00
ide-ssr Don't run doctests 2025-06-23 00:50:22 +03:00
intern Backport new sized-hierarchy trait bounds in old ways 2025-06-26 23:22:26 +09:00
load-cargo Add fn load_workspace_into_db variant for ra_ap_load_cargo's fn load_workspace 2025-07-03 23:09:49 +02:00
mbe Don't run doctests 2025-06-23 00:50:22 +03:00
parser Format and bump rustc crates 2025-07-15 17:41:08 +03:00
paths Don't run doctests 2025-06-23 00:50:22 +03:00
proc-macro-api Don't run doctests 2025-06-23 00:50:22 +03:00
proc-macro-srv feat(lexer): Allow including frontmatter with 'tokenize' 2025-07-09 16:42:27 -05:00
proc-macro-srv-cli Support spans with proc macro servers from before the ast id changes 2025-06-12 16:08:48 +03:00
profile Don't run doctests 2025-06-23 00:50:22 +03:00
project-model Further decrease number of cargo metadata invokes 2025-07-15 22:49:16 +09:00
query-group-macro Don't run doctests 2025-06-23 00:50:22 +03:00
rust-analyzer Merge pull request #20178 from ShoyuVanilla/cargo-config-cleanup 2025-07-15 16:13:30 +00:00
span Make AsmExpr have AstId 2025-07-09 21:43:20 +03:00
stdx Don't run doctests 2025-06-23 00:50:22 +03:00
syntax remove remove_default 2025-07-13 02:03:56 +09:00
syntax-bridge Don't run doctests 2025-06-23 00:50:22 +03:00
test-fixture Fix comparison of proc macros 2025-06-12 13:31:55 +03:00
test-utils Merge pull request #20132 from A4-Tacks/asmut-borrow-minicore 2025-07-06 08:01:54 +00:00
toolchain Don't run doctests 2025-06-23 00:50:22 +03:00
tt feat(lexer): Allow including frontmatter with 'tokenize' 2025-07-09 16:42:27 -05:00
vfs Bump salsa 2025-07-03 10:05:16 +02:00
vfs-notify Don't run doctests 2025-06-23 00:50:22 +03:00