@@ -73,7 +73,7 @@ fn main() {
7373
7474[discrete]
7575=== `add_impl_default_members`
76- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L55 [add_missing_impl_members.rs]
76+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L51 [add_missing_impl_members.rs]
7777
7878Adds scaffold for overriding default impl members.
7979
@@ -110,7 +110,7 @@ impl Trait for () {
110110
111111[discrete]
112112=== `add_impl_missing_members`
113- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L14 [add_missing_impl_members.rs]
113+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L10 [add_missing_impl_members.rs]
114114
115115Adds scaffold for required impl members.
116116
@@ -924,7 +924,7 @@ enum A { One(One) }
924924
925925[discrete]
926926=== `extract_type_alias`
927- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_type_alias.rs#L7 [extract_type_alias.rs]
927+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_type_alias.rs#L10 [extract_type_alias.rs]
928928
929929Extracts the selected type as a type alias.
930930
@@ -1707,6 +1707,31 @@ fn foo(name: Option<&str>) {
17071707```
17081708
17091709
1710+ [discrete]
1711+ === `inline_const_as_literal`
1712+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/inline_const_as_literal.rs#L5[inline_const_as_literal.rs]
1713+
1714+ Evaluate and inline const variable as literal.
1715+
1716+ .Before
1717+ ```rust
1718+ const STRING: &str = "Hello, World!";
1719+
1720+ fn something() -> &'static str {
1721+ STRING┃
1722+ }
1723+ ```
1724+
1725+ .After
1726+ ```rust
1727+ const STRING: &str = "Hello, World!";
1728+
1729+ fn something() -> &'static str {
1730+ "Hello, World!"
1731+ }
1732+ ```
1733+
1734+
17101735[discrete]
17111736=== `inline_into_callers`
17121737**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/inline_call.rs#L27[inline_call.rs]
@@ -2612,7 +2637,7 @@ fn main() {
26122637
26132638[discrete]
26142639=== `replace_derive_with_manual_impl`
2615- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_derive_with_manual_impl.rs#L21 [replace_derive_with_manual_impl.rs]
2640+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_derive_with_manual_impl.rs#L18 [replace_derive_with_manual_impl.rs]
26162641
26172642Converts a `derive` impl into a manual one.
26182643
0 commit comments