about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-08-07 16:18:06 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-08-12 19:29:47 +0000
commit5c427b4600708dce24066ade292f8d8b592b1cc5 (patch)
tree9a67a634a0c0e93769a6244af2561033b4e3e528
parentb2e7ae1f65fd5e1579692a9a7a8c95fb95aa1b04 (diff)
downloadrust-5c427b4600708dce24066ade292f8d8b592b1cc5.tar.gz
rust-5c427b4600708dce24066ade292f8d8b592b1cc5.zip
reword message
-rw-r--r--compiler/rustc_hir_typeck/src/method/suggest.rs2
-rw-r--r--compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs4
-rw-r--r--tests/run-make/crate-loading/rmake.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_hir_typeck/src/method/suggest.rs b/compiler/rustc_hir_typeck/src/method/suggest.rs
index d4fcbcad7ae..6afbde86739 100644
--- a/compiler/rustc_hir_typeck/src/method/suggest.rs
+++ b/compiler/rustc_hir_typeck/src/method/suggest.rs
@@ -4062,7 +4062,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
                 let name = self.tcx.crate_name(trait_candidate.def_id.krate);
                 if trait_candidate.def_id.krate != item.def_id.krate && name == pick_name {
                     let msg = format!(
-                        "you have multiple different versions of crate `{name}` in your \
+                        "there are multiple different versions of crate `{name}` in the \
                          dependency graph",
                     );
                     let tdid = self.tcx.parent(item.def_id);
diff --git a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs b/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs
index 95d4509c100..5b879cf67ce 100644
--- a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs
+++ b/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs
@@ -1697,11 +1697,11 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
             err.highlighted_span_help(
                 span,
                 vec![
-                    StringPart::normal("you have ".to_string()),
+                    StringPart::normal("there are ".to_string()),
                     StringPart::highlighted("multiple different versions".to_string()),
                     StringPart::normal(" of crate `".to_string()),
                     StringPart::highlighted(format!("{name}")),
-                    StringPart::normal("` in your dependency graph".to_string()),
+                    StringPart::normal("` the your dependency graph".to_string()),
                 ],
             );
             let candidates = if impl_candidates.is_empty() {
diff --git a/tests/run-make/crate-loading/rmake.rs b/tests/run-make/crate-loading/rmake.rs
index 5da706624ae..1b9c13c1f6a 100644
--- a/tests/run-make/crate-loading/rmake.rs
+++ b/tests/run-make/crate-loading/rmake.rs
@@ -18,7 +18,7 @@ fn main() {
         .extern_("dep_2_reexport", rust_lib_name("foo"))
         .run_fail()
         .assert_stderr_contains(
-            "you have multiple different versions of crate `dependency` in your dependency graph",
+            "there are multiple different versions of crate `dependency` in the dependency graph",
         )
         .assert_stderr_contains(
             "two types coming from two different versions of the same crate are different types \