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

Fix spans on macro-generated bindings and format variables #399

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Dec 18, 2024

Fixes #398.

    error[E0425]: cannot find value `_0` in this scope
       --> tests/test_display.rs:308:17
        |
    308 |         #[error("{0}")]
        |                 ^^^^^ not found in this scope

    error[E0425]: cannot find value `__display_x` in this scope
       --> tests/test_display.rs:310:17
        |
    310 |         #[error("{x}")]
        |                 ^^^^^ not found in this scope
@dtolnay dtolnay merged commit a7de3ab into master Dec 18, 2024
20 checks passed
@dtolnay dtolnay deleted the respan branch December 18, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E0425 deriving Error for an enum declared in a macro
1 participant