Skip to content

Commit a4230a0

Browse files
authored
Rollup merge of #148175 - osamakader:fix-typos-duplicate-words, r=lcnr
Fix typos: duplicate words in comments - Fix 'the the' → 'the' in rustc_const_eval - Fix 'wether' → 'whether' in compiletest - Fix 'is is' → 'is' in rustc_ast_pretty (2 instances)
2 parents b0ee95c + bf6f303 commit a4230a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_ast_pretty/src/pp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl Printer {
298298
}
299299
}
300300

301-
// This is is where `BoxMarker`s are produced.
301+
// This is where `BoxMarker`s are produced.
302302
fn scan_begin(&mut self, token: BeginToken) -> BoxMarker {
303303
if self.scan_stack.is_empty() {
304304
self.left_total = 1;
@@ -310,7 +310,7 @@ impl Printer {
310310
BoxMarker
311311
}
312312

313-
// This is is where `BoxMarker`s are consumed.
313+
// This is where `BoxMarker`s are consumed.
314314
fn scan_end(&mut self, b: BoxMarker) {
315315
if self.scan_stack.is_empty() {
316316
self.print_end();

compiler/rustc_const_eval/src/interpret/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl EnteredTraceSpan for tracing::span::EnteredSpan {
121121
/// ### `tracing_separate_thread` parameter
122122
///
123123
/// This macro was introduced to obtain better traces of Miri without impacting release performance.
124-
/// Miri saves traces using the the `tracing_chrome` `tracing::Layer` so that they can be visualized
124+
/// Miri saves traces using the `tracing_chrome` `tracing::Layer` so that they can be visualized
125125
/// in <https://ui.perfetto.dev>. To instruct `tracing_chrome` to put some spans on a separate trace
126126
/// thread/line than other spans when viewed in <https://ui.perfetto.dev>, you can pass
127127
/// `tracing_separate_thread = tracing::field::Empty` to the tracing macros. This is useful to

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3006,7 +3006,7 @@ impl<'test> TestCx<'test> {
30063006
self.delete_file(&examined_path);
30073007
}
30083008
// If we want them to be the same, but they are different, then error.
3009-
// We do this wether we bless or not
3009+
// We do this whether we bless or not
30103010
(_, true, false) => {
30113011
self.fatal_proc_rec(
30123012
&format!("`{}` should not have different output from base test!", kind),

0 commit comments

Comments
 (0)