We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
impl ...
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: rust-analyzer 1.88.0-nightly (a15cce2 2025-04-17)
rustc version: rustc 1.88.0-nightly (a15cce269 2025-04-17)
editor or extension: VIM-9.1
code snippet to reproduce:
#[derive(Default)] struct OptionOwned<T: ToOwned> { owned: Option<T::Owned>, }
Use Convert to manual `impl Default for OptionOwned` on Default:
Convert to manual `impl Default for OptionOwned`
Default
impl<T: ToOwned + Default> Default for OptionOwned<T> { fn default() -> Self { Self { owned: Default::default() } } }
Use rust-analyzer.expandMacro on Default:
rust-analyzer.expandMacro
impl<T: core::default::Default> core::default::Default for OptionOwned<T> where T: ToOwned, T::Owned: core::default::Default, { fn default() -> Self { OptionOwned { owned: core::default::Default::default(), } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rust-analyzer version: rust-analyzer 1.88.0-nightly (a15cce2 2025-04-17)
rustc version: rustc 1.88.0-nightly (a15cce269 2025-04-17)
editor or extension: VIM-9.1
code snippet to reproduce:
Use
Convert to manual `impl Default for OptionOwned`
onDefault
:Use
rust-analyzer.expandMacro
onDefault
:The text was updated successfully, but these errors were encountered: