diff options
| author | finalchild <finalchild2@gmail.com> | 2022-08-17 23:52:16 +0900 |
|---|---|---|
| committer | finalchild <finalchild2@gmail.com> | 2022-08-22 00:57:21 +0900 |
| commit | 80451de390dde969057230345e44adfab21de6b8 (patch) | |
| tree | d6e645ab0851815fab8edcd5616326cfcde02697 /compiler/rustc_builtin_macros/src | |
| parent | d6fdf14eb783969b4e20e91d39a97bb56b50f1c6 (diff) | |
| download | rust-80451de390dde969057230345e44adfab21de6b8.tar.gz rust-80451de390dde969057230345e44adfab21de6b8.zip | |
Use DiagnosticMessage for BufferedEarlyLint.msg
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/format.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs index 08026c9d357..e76f5711b7b 100644 --- a/compiler/rustc_builtin_macros/src/format.rs +++ b/compiler/rustc_builtin_macros/src/format.rs @@ -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 { |
