Skip to content

src/test/ui/asm/sym.rs makes incorrect use of #[track_caller] #73911

Closed
@anp

Description

@anp

In this test:

// The compiler will generate a shim to hide the caller location parameter.
#[track_caller]
fn f2() -> i32 {
222
}

I don't see anything in the current RFC text to suggest that the sym usage here should create a call shim, as they're only created when taking function pointers. Is there a function pointer being created in this test that I'm missing?

cc @Amanieu @eddyb

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions