Skip to content

tracing debug sigil does not compile in rc.4 #18815

Closed
@ChristopherBiscardi

Description

@ChristopherBiscardi

Crates that currently use the ?variable tracing syntax (the "? sigil") are currently unable to build on bevy rc.3. bevy_log is currently pulling in rc.4.

Note

there is currently a half-published rc.4 release that exists on crates.io so this issue may resolve itself.
edit: full rc.4 release is out and the issue is still present

#18782 seems to have introduced the issue.

Minimal Reproduction

use bevy::prelude::*;

fn main() {
    let thing = 3;
    trace!(?thing, "some message");
    App::new().add_plugins(DefaultPlugins).run();
}

Additional info

locking bevy_log to rc.3 "solves" the issue.

bevy = "0.16.0-rc.3"
bevy_log = "=0.16.0-rc.3"
❯ cargo run
   Compiling bevy-log-test v0.2.0 (/Users/chris/tmp/bevy-log-test)
error: expected expression, found `?`
 --> src/main.rs:5:12
  |
5 |     trace!(?thing, "some message");
  |            ^ expected expression

error: could not compile `bevy-log-test` (bin "bevy-log-test") due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-DiagnosticsLogging, crash handling, error reporting and performance analysisC-BugAn unexpected or incorrect behaviorS-Needs-TriageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions