-
-
Couldn't load subscription status.
- Fork 128
Closed
Description
We currently rely on a catch_unwind to detect whether Span::call_site() works, i.e. whether we are executing inside of a procedural macro as opposed to any other binary.
Unfortunately this is incompatible with using proc-macro2 (or quote, syn) in a non-macro way inside of binaries that are built with panic=abort, as they will just abort on that line.
rust-lang/rust#71436 adds a proc_macro::is_available() function to do this detection in a way that no longer relies on panicking.
Once the first 1.45-beta release is available, we should add some detection in build.rs to begin using proc_macro::is_available() on dev compiler builds.
Metadata
Metadata
Assignees
Labels
No labels