diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-18 06:58:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-18 06:58:49 +0100 |
| commit | d9b47c1f2b4e5965500cc6f6d024dae486a65c0f (patch) | |
| tree | a751259599e4de65de8c6af295975c31022b7862 | |
| parent | 5608c7f9aaf380bd0c49bbcc350ecf8c5eb4b68c (diff) | |
| parent | 758f642c29043630fd987afd74b008fa9c49a51d (diff) | |
| download | rust-d9b47c1f2b4e5965500cc6f6d024dae486a65c0f.tar.gz rust-d9b47c1f2b4e5965500cc6f6d024dae486a65c0f.zip | |
Rollup merge of #122639 - omahs:patch-2, r=estebank
Fix typos Fix typos
| -rw-r--r-- | compiler/rustc_hir_typeck/src/method/probe.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_mir_build/src/build/scope.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_typeck/src/method/probe.rs b/compiler/rustc_hir_typeck/src/method/probe.rs index bdc796aca3a..e4d5ebb82e8 100644 --- a/compiler/rustc_hir_typeck/src/method/probe.rs +++ b/compiler/rustc_hir_typeck/src/method/probe.rs @@ -1935,7 +1935,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> { } } - /// Determine if the associated item withe the given DefId matches + /// Determine if the associated item with the given DefId matches /// the desired name via a doc alias. fn matches_by_doc_alias(&self, def_id: DefId) -> bool { let Some(name) = self.method_name else { diff --git a/compiler/rustc_mir_build/src/build/scope.rs b/compiler/rustc_mir_build/src/build/scope.rs index 88ac05cabb6..aef63896dde 100644 --- a/compiler/rustc_mir_build/src/build/scope.rs +++ b/compiler/rustc_mir_build/src/build/scope.rs @@ -774,7 +774,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { let (current_root, parent_root) = if self.tcx.sess.opts.unstable_opts.maximal_hir_to_mir_coverage { // Some consumers of rustc need to map MIR locations back to HIR nodes. Currently - // the the only part of rustc that tracks MIR -> HIR is the + // the only part of rustc that tracks MIR -> HIR is the // `SourceScopeLocalData::lint_root` field that tracks lint levels for MIR // locations. Normally the number of source scopes is limited to the set of nodes // with lint annotations. The -Zmaximal-hir-to-mir-coverage flag changes this |
