You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply a simple change to -sql-entity-graph and -macros:
Use `format_ident!` for every case we format... an identifier... and we
don't change the identifier, and reuse the existing span or worse, drop
the span on the floor by calling `Span::call_site`. This will, in
general, improve the error-reporting of spans so that errors refer back
to the original input that provoked the expansion.
It is possible we should by relocating synthesized spans, see
rust-lang/rust#124145 for more details. This
change is still preferred because it makes it easier to refactor these
again.
// the wrapper_inner function declaration may contain lifetimes that are not used, since our input type is `FunctionCallInfo` mainly and return type is `Datum`
64
63
let unused_lifetimes = match generics.lifetimes().next(){
let func_name_wrapper = format_ident!("{}_wrapper",&self.func.sig.ident);
397
390
let func_generics = &self.func.sig.generics;
398
391
// the wrapper function declaration may contain lifetimes that are not used, since our input type is `FunctionCallInfo` mainly and return type is `Datum`
399
392
let unused_lifetimes = match func_generics.lifetimes().next(){
@@ -407,10 +400,7 @@ impl PgExtern {
407
400
let fcinfo_ident = syn::Ident::new("_fcinfo",self.func.sig.ident.span());
0 commit comments