-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
bugSomething is brokenSomething is broken
Description
Describe the bug
profiling::scope raises compile error when profiling through tracing
error[E0435]: attempt to use a non-constant value in a constant
--> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.0/src/plugin.rs:219:32
|
219 | profiling::scope!(*_debug_name);
| ^^^^^^^^^^^ non-constant value
|
help: consider using `let` instead of `static`
--> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.41/src/macros.rs:58:13
|
58 - static __CALLSITE: $crate::callsite::DefaultCallsite = $crate::callsite2! {
58 + let __CALLSITE: $crate::callsite::DefaultCallsite = $crate::callsite2! {
|
error[E0435]: attempt to use a non-constant value in a constant
--> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.0/src/plugin.rs:228:32
|
228 | profiling::scope!(*_debug_name);
| ^^^^^^^^^^^ non-constant value
|
help: consider using `let` instead of `static`
--> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.41/src/macros.rs:58:13
|
58 - static __CALLSITE: $crate::callsite::DefaultCallsite = $crate::callsite2! {
58 + let __CALLSITE: $crate::callsite::DefaultCallsite = $crate::callsite2! {
|
To Reproduce
Enable profiling with 'tracing':
profile-with-tracing = ["profiling/profile-with-tracing"]
Expected behavior
Program successfully compiles.
Metadata
Metadata
Assignees
Labels
bugSomething is brokenSomething is broken