Skip to content
New issue

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

Renaming a field used in thiserror won't rename the usage in the attribute of the macro (I think it may be related to the serde(with)) #18893

Open
Tracked by #18812
Veykril opened this issue Jan 9, 2025 · 0 comments
Labels
A-ide general IDE features A-proc-macro proc macro C-bug Category: bug

Comments

@Veykril
Copy link
Member

Veykril commented Jan 9, 2025

use std::io;
use thiserror::Error;

#[derive(Error, Debug)]
#[error("Rename failed at {}", .source)]
pub struct Error {
    // renaming this field won't rename the usage above
    source: io::Error,
}
@Veykril Veykril mentioned this issue Jan 9, 2025
5 tasks
@Veykril Veykril added A-ide general IDE features A-proc-macro proc macro C-bug Category: bug labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ide general IDE features A-proc-macro proc macro C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

1 participant