uuid-rs / uuid

Generate and parse UUIDs.

Home Page:https://www.crates.io/crates/uuid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Macros from 1.5.0 to 1.6.0 break.

Firstyear opened this issue · comments

error: argument to `panic!()` in a const context must have type `&str`
  --> /Users/william/.cargo/git/checkouts/webauthn-rs-5dfb1fd095985608/2218d20/webauthn-authenticator-rs/src/softtoken.rs:35:26
   |
35 | pub const AAGUID: Uuid = uuid::uuid!("0fb9bcbc-a0d4-4042-bbb0-559bc1631e28");
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `uuid::uuid` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `webauthn-authenticator-rs` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

The following code previously worked, where now it fails to build. This regression appears when updating from 1.5.0 to 1.6.0

Ah that’s a nasty footgun! I’m surprised our CI didn’t pick this up.

Thanks for the report @Firstyear. I’ll get this patched up.

This should be fixed up now but let me know of it’s still a problem. I’m remote at the moment so don’t have a proper setup handy to check things.

Seems to all work again, thanks for the quick fix.

Thank you @KodrAus <3