Better spanning on generated code #170
Labels
backlog
Items planned to be done, but with no milestone yet
enhancement
New feature or request
errors
refactor
We need to use span pointing more. If something goes wrong with this generated function compilation, the compilation error would point to
#[contract]
, while the function is generally generated from thereply
function - I think it would be nice to add the proper span for the whole entity withquote_spanned
:Note that
quote_spaned
maintains spans of spanned entities you expand (eg if something is wrong with compiling#custom_msg
in resp type, error about that would actually point to the ident we created it from.Originally posted by @hashedone in #156 (comment)
The text was updated successfully, but these errors were encountered: