Skip to content

Undefined behavior with no span on Windows #4732

@DasLixou

Description

@DasLixou

I'm on Windows and just did rustup +nightly component add miri.
When I do a new binary crate, run cargo add eframe --no-default-features and then put the following in main.rs:

use eframe;
fn main() {}

I get the following error with cargo +nightly miri run:

error: Undefined Behavior: calling a function with calling convention "Rust" using calling convention "C"
  |
  = note: Undefined Behavior occurred here
  = note: (no span available)
  = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions