about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-23 12:54:06 +0000
committerbors <bors@rust-lang.org>2024-02-23 12:54:06 +0000
commitdeddea0d903b435eddedba8e57296440d19c20a4 (patch)
tree867255133349e38934cd12d15febf4b3889a9b75
parent6648f19c56ae3a5e20459d96639d7f861b81c85f (diff)
parent6dca7948f771cb2e0d3e1461acb03b2268075f02 (diff)
downloadrust-deddea0d903b435eddedba8e57296440d19c20a4.tar.gz
rust-deddea0d903b435eddedba8e57296440d19c20a4.zip
Auto merge of #16646 - cuishuang:master, r=lnicola
remove repetitive words
-rw-r--r--crates/hir-ty/src/db.rs2
-rw-r--r--crates/salsa/src/runtime/dependency_graph.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/db.rs b/crates/hir-ty/src/db.rs
index 42313ff52b1..f9e8cff5539 100644
--- a/crates/hir-ty/src/db.rs
+++ b/crates/hir-ty/src/db.rs
@@ -90,7 +90,7 @@ pub trait HirDatabase: DefDatabase + Upcast<dyn DefDatabase> {
     #[salsa::cycle(crate::lower::ty_recover)]
     fn ty(&self, def: TyDefId) -> Binders<Ty>;
 
-    /// Returns the type of the value of the given constant, or `None` if the the `ValueTyDefId` is
+    /// Returns the type of the value of the given constant, or `None` if the `ValueTyDefId` is
     /// a `StructId` or `EnumVariantId` with a record constructor.
     #[salsa::invoke(crate::lower::value_ty_query)]
     fn value_ty(&self, def: ValueTyDefId) -> Option<Binders<Ty>>;
diff --git a/crates/salsa/src/runtime/dependency_graph.rs b/crates/salsa/src/runtime/dependency_graph.rs
index e41eb280dee..dd223eeeba9 100644
--- a/crates/salsa/src/runtime/dependency_graph.rs
+++ b/crates/salsa/src/runtime/dependency_graph.rs
@@ -12,7 +12,7 @@ type QueryStack = Vec<ActiveQuery>;
 
 #[derive(Debug, Default)]
 pub(super) struct DependencyGraph {
-    /// A `(K -> V)` pair in this map indicates that the the runtime
+    /// A `(K -> V)` pair in this map indicates that the runtime
     /// `K` is blocked on some query executing in the runtime `V`.
     /// This encodes a graph that must be acyclic (or else deadlock
     /// will result).