]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/pass_by_value.rs
Pass ObligationCtxt from enter_canonical_trait_query and use ObligationCtxt API
[rust.git] / compiler / rustc_lint / src / pass_by_value.rs
index 349399b5964942dffa97e87212ccb8a8f10c2914..01bface718a7802843c08e71a1969272b98a7b56 100644 (file)
@@ -32,11 +32,11 @@ fn check_ty(&mut self, cx: &LateContext<'_>, ty: &'tcx hir::Ty<'tcx>) {
                     cx.struct_span_lint(
                         PASS_BY_VALUE,
                         ty.span,
-                        fluent::lint::pass_by_value,
+                        fluent::lint_pass_by_value,
                         |lint| {
                             lint.set_arg("ty", t.clone()).span_suggestion(
                                 ty.span,
-                                fluent::lint::suggestion,
+                                fluent::suggestion,
                                 t,
                                 // Changing type of function argument
                                 Applicability::MaybeIncorrect,