The standard library now has proc_macro::ToTokens which matches quote::ToTokens. Could proc-macro2 types add a proc_macro::ToTokens implementation that is gated by the nightly feature? This should allow quoting proc_macro2 types with proc_macro::quote!.