1
Fork 0

Remove redundant to_ident_string calls

This commit is contained in:
Michael Goulet 2025-01-27 01:21:40 +00:00
parent ac1c6c50f4
commit c08624d8d2
10 changed files with 14 additions and 18 deletions

View file

@ -157,7 +157,7 @@ pub(crate) fn expand_deriving_coerce_pointee(
{
cx.dcx().emit_err(RequiresMaybeSized {
span: pointee_ty_ident.span,
name: pointee_ty_ident.name.to_ident_string(),
name: pointee_ty_ident,
});
return;
}
@ -471,5 +471,5 @@ struct TooManyPointees {
struct RequiresMaybeSized {
#[primary_span]
span: Span,
name: String,
name: Ident,
}