Rollup merge of #99508 - TaKO8Ki:avoid-symbol-to-string-conversion-in-BuiltinLintDiagnostics, r=compiler-errors
Avoid `Symbol` to `String` conversions follow-up to #99342
This commit is contained in:
commit
4b21ad26df
4 changed files with 11 additions and 14 deletions
|
@ -1004,9 +1004,7 @@ fn lint_named_arguments_used_positionally(
|
|||
node_id: ast::CRATE_NODE_ID,
|
||||
lint_id: LintId::of(&NAMED_ARGUMENTS_USED_POSITIONALLY),
|
||||
diagnostic: BuiltinLintDiagnostics::NamedArgumentUsedPositionally(
|
||||
arg_span,
|
||||
span,
|
||||
symbol.to_string(),
|
||||
arg_span, span, symbol,
|
||||
),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue