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_lint/src | |
| parent | d6fdf14eb783969b4e20e91d39a97bb56b50f1c6 (diff) | |
| download | rust-80451de390dde969057230345e44adfab21de6b8.tar.gz rust-80451de390dde969057230345e44adfab21de6b8.zip | |
Use DiagnosticMessage for BufferedEarlyLint.msg
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/early.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs index 580a4566869..cdb5b3c4284 100644 --- a/compiler/rustc_lint/src/early.rs +++ b/compiler/rustc_lint/src/early.rs @@ -45,7 +45,7 @@ impl<'a, T: EarlyLintPass> EarlyContextAndPass<'a, T> { lint_id.lint, Some(span), |lint| { - lint.build(&msg).emit(); + lint.build(msg).emit(); }, diagnostic, ); |
