mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
avoid a Symbol
to String
conversion
This commit is contained in:
parent
9a7b7d5e50
commit
57a155b9fa
@ -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,
|
||||
),
|
||||
});
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ pub enum BuiltinLintDiagnostics {
|
||||
/// If true, the lifetime will be fully elided.
|
||||
use_span: Option<(Span, bool)>,
|
||||
},
|
||||
NamedArgumentUsedPositionally(Option<Span>, Span, String),
|
||||
NamedArgumentUsedPositionally(Option<Span>, Span, Symbol),
|
||||
}
|
||||
|
||||
/// Lints that are buffered up early on in the `Session` before the
|
||||
|
Loading…
Reference in New Issue
Block a user