We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac7d7c commit 803ff63Copy full SHA for 803ff63
compiler/rustc_errors/src/diagnostic_impls.rs
@@ -230,6 +230,12 @@ impl IntoDiagArg for ast::token::TokenKind {
230
}
231
232
233
+impl IntoDiagArg for ast::tokenstream::TokenTree {
234
+ fn into_diag_arg(self) -> DiagArgValue {
235
+ DiagArgValue::Str(Cow::Owned(pprust::tt_to_string(&self)))
236
+ }
237
+}
238
+
239
impl IntoDiagArg for FloatTy {
240
fn into_diag_arg(self) -> DiagArgValue {
241
DiagArgValue::Str(Cow::Borrowed(self.name_str()))
0 commit comments