Skip to content

Commit 8697d8f

Browse files
authored
Rollup merge of rust-lang#122639 - omahs:patch-2, r=estebank
Fix typos Fix typos
2 parents 7970566 + 758f642 commit 8697d8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_hir_typeck/src/method/probe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
19351935
}
19361936
}
19371937

1938-
/// Determine if the associated item withe the given DefId matches
1938+
/// Determine if the associated item with the given DefId matches
19391939
/// the desired name via a doc alias.
19401940
fn matches_by_doc_alias(&self, def_id: DefId) -> bool {
19411941
let Some(name) = self.method_name else {

compiler/rustc_mir_build/src/build/scope.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
774774
let (current_root, parent_root) =
775775
if self.tcx.sess.opts.unstable_opts.maximal_hir_to_mir_coverage {
776776
// Some consumers of rustc need to map MIR locations back to HIR nodes. Currently
777-
// the the only part of rustc that tracks MIR -> HIR is the
777+
// the only part of rustc that tracks MIR -> HIR is the
778778
// `SourceScopeLocalData::lint_root` field that tracks lint levels for MIR
779779
// locations. Normally the number of source scopes is limited to the set of nodes
780780
// with lint annotations. The -Zmaximal-hir-to-mir-coverage flag changes this

0 commit comments

Comments
 (0)