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

Formatter bug with let followed by comment before unsafe #7658

Closed
asterite opened this issue Mar 11, 2025 · 0 comments · Fixed by #7659
Closed

Formatter bug with let followed by comment before unsafe #7658

asterite opened this issue Mar 11, 2025 · 0 comments · Fixed by #7659
Assignees
Labels
bug Something isn't working

Comments

@asterite
Copy link
Collaborator

Aim

This code:

fn main() {
    let x = // Comment
        unsafe { 1};
}

Expected Behavior

Expected nargo fmt to format it in some way that is valid.

Bug

The code is formatted like this:

fn main() {
    let x = // Commentunsafe { 1 };
}

meaning that the code becomes invalid.

To Reproduce

Workaround

None

Workaround Description

No response

Additional Context

No response

Project Impact

None

Blocker Context

No response

Nargo Version

No response

NoirJS Version

No response

Proving Backend Tooling & Version

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

@asterite asterite added the bug Something isn't working label Mar 11, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Mar 11, 2025
@asterite asterite self-assigned this Mar 11, 2025
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant