We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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: 0.3.1940-standalone (f216be4 2024-04-27)
rustc version: 1.76.0
editor or extension: VSCode - extension v0.3.1940
code snippet to reproduce:
macro_rules! bugdemo { ($newtype_name:ident, $elem_name:ident) => { #[derive(Debug, Clone, Copy)] struct $newtype_name(bool); paste::paste! { impl $newtype_name { fn $elem_name(&self) -> bool { self.0 } fn [<$elem_name _mut>](&mut self) -> &mut bool { &mut self.0 } }} }; } bugdemo!(MyType, myelem); fn foo2() { let mut x = MyType(false); *x.myelem_mut() = true; assert!(x.myelem()); }
To reproduce: try to rename myelem in the bugdemo invocation to myelem2. It fails to rename myelem_mut to myelem2_mut.
myelem
myelem2
myelem_mut
myelem2_mut
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rust-analyzer version: 0.3.1940-standalone (f216be4 2024-04-27)
rustc version: 1.76.0
editor or extension: VSCode - extension v0.3.1940
code snippet to reproduce:
To reproduce: try to rename
myelem
in the bugdemo invocation tomyelem2
. It fails to renamemyelem_mut
tomyelem2_mut
.The text was updated successfully, but these errors were encountered: