Remove redundant to_ident_string calls
This commit is contained in:
parent
ac1c6c50f4
commit
c08624d8d2
10 changed files with 14 additions and 18 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue