1
Fork 0

Use DiagnosticMessage for BufferedEarlyLint.msg

This commit is contained in:
finalchild 2022-08-17 23:52:16 +09:00
parent d6fdf14eb7
commit 80451de390
3 changed files with 6 additions and 6 deletions

View file

@ -1176,7 +1176,7 @@ fn create_lints_for_named_arguments_used_positionally(cx: &mut Context<'_, '_>)
cx.ecx.buffered_early_lint.push(BufferedEarlyLint {
span: MultiSpan::from_span(named_arg.positional_named_arg_span),
msg: msg.clone(),
msg: msg.clone().into(),
node_id: ast::CRATE_NODE_ID,
lint_id: LintId::of(&NAMED_ARGUMENTS_USED_POSITIONALLY),
diagnostic: BuiltinLintDiagnostics::NamedArgumentUsedPositionally {