summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorakida31 <akida3@protonmail.com>2022-10-11 17:02:56 +0200
committerakida31 <akida3@protonmail.com>2022-12-13 16:29:10 +0100
commit7822822d51ecde145747c19a8cf57444666e9a3b (patch)
tree1eee5fb24132f548fc52b3f011b4e4755425491f /compiler/rustc_trait_selection/src/traits
parentb1d74306579f310b33afd21c8a853afdc53d1fd2 (diff)
downloadrust-7822822d51ecde145747c19a8cf57444666e9a3b.tar.gz
rust-7822822d51ecde145747c19a8cf57444666e9a3b.zip
change error message
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
index f9a63841a70..f20cecdb74f 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -3449,11 +3449,11 @@ fn hint_missing_borrow<'tcx>(
 
         if found_ty == expected_ty {
             let hint = if found_refs < expected_refs {
-                "consider borrowing here:"
+                "consider borrowing the argument"
             } else if found_refs == expected_refs {
                 continue;
             } else {
-                "consider removing the borrow:"
+                "do not borrow the argument"
             };
             err.span_suggestion_verbose(
                 arg_span,