Skip to content

[Bug] formatters that take refs overwrite the variable name (nightly) #2468

@brakhane

Description

@brakhane

Operating System

Windows

What's the issue you encountered?

This bug only applies to the current nightly build, 1.37.4 does not have this bug.

Using the following pattern:

fn foo_formatter(ref auto functionParameterName) {
   return "...";
};

struct Foo {
  u8 a;
} [[sealed, format("foo_formatter")]];

Foo foo@0;

The name will be shown as functionParameterName instead of foo. Removing the ref fixes that.

How can the issue be reproduced?

see above

ImHex Version

master@b82c1f051c6e08cd5817dfbf071b1d626d14b285

ImHex Build Type

  • Nightly or built from sources

Installation type

Portable from nightly releases

Additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions