about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/methods.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-10-22 11:07:54 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-10-23 10:09:44 +0200
commitc65ebae2216119d23d88bbfea78192a3d950c4f3 (patch)
treeec31f70d90cc6b92efda45411bcd5acd4fddf56c /compiler/rustc_lint/src/methods.rs
parent2459569776b47e714f982a9421fb17f73ee2e061 (diff)
downloadrust-c65ebae2216119d23d88bbfea78192a3d950c4f3.tar.gz
rust-c65ebae2216119d23d88bbfea78192a3d950c4f3.zip
Migrate all diagnostics
Diffstat (limited to 'compiler/rustc_lint/src/methods.rs')
-rw-r--r--compiler/rustc_lint/src/methods.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_lint/src/methods.rs b/compiler/rustc_lint/src/methods.rs
index 313119637bc..e2d7d5b49f6 100644
--- a/compiler/rustc_lint/src/methods.rs
+++ b/compiler/rustc_lint/src/methods.rs
@@ -93,12 +93,12 @@ fn lint_cstring_as_ptr(
                     cx.struct_span_lint(
                         TEMPORARY_CSTRING_AS_PTR,
                         as_ptr_span,
-                        fluent::lint::cstring_ptr,
+                        fluent::lint_cstring_ptr,
                         |diag| {
-                            diag.span_label(as_ptr_span, fluent::lint::as_ptr_label)
-                                .span_label(unwrap.span, fluent::lint::unwrap_label)
-                                .note(fluent::lint::note)
-                                .help(fluent::lint::help)
+                            diag.span_label(as_ptr_span, fluent::as_ptr_label)
+                                .span_label(unwrap.span, fluent::unwrap_label)
+                                .note(fluent::note)
+                                .help(fluent::help)
                         },
                     );
                 }