Compiling error message for proc-macro expanded codes

Hi Dear all,

i m trying to write something with procedure macro
but i got some compiling error after derive code expansion.
the compiler only tells me it originate from derive line,
is it possible to get an error message pointing to expanded code?

10 | #[derive(ORM, Debug, Default)]
   |          -^^
   |          |
   |          let's call the lifetime of this reference `'1`
   |          lifetime `'a` defined here
   |          argument requires that `'1` must outlive `'a`

even though i run with -Z macro-backtrace, it only gives me which proc-macro function generate this code.
lol

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.