`cargo` not outputting info about an error

So... for some strange reason, cargo is throwing an error from my code. However, there's no error message included:
1604425020

I've uploaded my code to a temporary repository, here: https://github.com/DrBluefall/mtl

I think this is a bug, but I'm so uncertain that I've decided to post here so I can get some help.

It looks like there are several compiler bugs that can cause error information to be lost when attribute macros are used, especially multiple macros in combination.

If I remove the #[tracing::instrument] attribute from your main function, then it produces a useful error:

error[E0308]: mismatched types
  --> src/main.rs:66:39
   |
66 |     let db = sqlx::MySqlPool::connect(dburl).await?;
   |                                       ^^^^^
   |                                       |
   |                                       expected `&str`, found struct `std::string::String`
   |                                       help: consider borrowing here: `&dburl`

This may be related to one of these known bugs:

1 Like

I see. Duly noted.

I'll just have to replicate the attribute macro's capabilities. Shouldn't be toooooooo hard. famous last words right there