Skip to content

Commit 77064b7

Browse files
authored
Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki
More dupe word typos I only picked those changes (from the regex search) that I am pretty certain doesn't change meaning and is just a typo fix. Do correct me if any fix is undesirable and I can revert those. Thanks.
2 parents 8c9ecbb + 7122aba commit 77064b7

File tree

47 files changed

+68
-72
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+68
-72
lines changed

compiler/rustc_borrowck/src/universal_regions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx> {
414414

415415
let typeck_root_def_id = self.infcx.tcx.typeck_root_def_id(self.mir_def.did.to_def_id());
416416

417-
// If this is is a 'root' body (not a closure/generator/inline const), then
417+
// If this is a 'root' body (not a closure/generator/inline const), then
418418
// there are no extern regions, so the local regions start at the same
419419
// position as the (empty) sub-list of extern regions
420420
let first_local_index = if self.mir_def.did.to_def_id() == typeck_root_def_id {

compiler/rustc_codegen_cranelift/build_system/rustc_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub(crate) fn get_file_name(crate_name: &str, crate_type: &str) -> String {
6565
}
6666

6767
/// Similar to `get_file_name`, but converts any dashes (`-`) in the `crate_name` to
68-
/// underscores (`_`). This is specially made for the the rustc and cargo wrappers
68+
/// underscores (`_`). This is specially made for the rustc and cargo wrappers
6969
/// which have a dash in the name, and that is not allowed in a crate name.
7070
pub(crate) fn get_wrapper_file_name(crate_name: &str, crate_type: &str) -> String {
7171
let crate_name = crate_name.replace('-', "_");

compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub(super) fn from_casted_value<'tcx>(
193193
kind: StackSlotKind::ExplicitSlot,
194194
// FIXME Don't force the size to a multiple of 16 bytes once Cranelift gets a way to
195195
// specify stack slot alignment.
196-
// Stack slot size may be bigger for for example `[u8; 3]` which is packed into an `i32`.
196+
// Stack slot size may be bigger for example `[u8; 3]` which is packed into an `i32`.
197197
// It may also be smaller for example when the type is a wrapper around an integer with a
198198
// larger alignment than the integer.
199199
size: (std::cmp::max(abi_param_size, layout_size) + 15) / 16 * 16,

compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl CoverageMapGenerator {
129129
// LLVM Coverage Mapping Format version 6 (zero-based encoded as 5)
130130
// requires setting the first filename to the compilation directory.
131131
// Since rustc generates coverage maps with relative paths, the
132-
// compilation directory can be combined with the the relative paths
132+
// compilation directory can be combined with the relative paths
133133
// to get absolute paths, if needed.
134134
let working_dir = tcx
135135
.sess

compiler/rustc_const_eval/src/const_eval/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub struct ConstEvalErr<'tcx> {
6464
impl<'tcx> ConstEvalErr<'tcx> {
6565
/// Turn an interpreter error into something to report to the user.
6666
/// As a side-effect, if RUSTC_CTFE_BACKTRACE is set, this prints the backtrace.
67-
/// Should be called only if the error is actually going to to be reported!
67+
/// Should be called only if the error is actually going to be reported!
6868
pub fn new<'mir, M: Machine<'mir, 'tcx>>(
6969
ecx: &InterpCx<'mir, 'tcx, M>,
7070
error: InterpErrorInfo<'tcx>,

compiler/rustc_const_eval/src/interpret/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
794794
todo.extend(static_roots);
795795
while let Some(id) = todo.pop() {
796796
if reachable.insert(id) {
797-
// This is a new allocation, add the allocation it points to to `todo`.
797+
// This is a new allocation, add the allocation it points to `todo`.
798798
if let Some((_, alloc)) = self.memory.alloc_map.get(id) {
799799
todo.extend(
800800
alloc.provenance().values().filter_map(|prov| prov.get_alloc_id()),

compiler/rustc_data_structures/src/graph/vec_graph/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ impl<N: Idx + Ord> VecGraph<N> {
2929
// Store the *target* of each edge into `edge_targets`.
3030
let edge_targets: Vec<N> = edge_pairs.iter().map(|&(_, target)| target).collect();
3131

32-
// Create the *edge starts* array. We are iterating over over
33-
// the (sorted) edge pairs. We maintain the invariant that the
32+
// Create the *edge starts* array. We are iterating over the
33+
// (sorted) edge pairs. We maintain the invariant that the
3434
// length of the `node_starts` array is enough to store the
3535
// current source node -- so when we see that the source node
3636
// for an edge is greater than the current length, we grow the

compiler/rustc_expand/src/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl InvocationKind {
327327
fn placeholder_visibility(&self) -> Option<ast::Visibility> {
328328
// HACK: For unnamed fields placeholders should have the same visibility as the actual
329329
// fields because for tuple structs/variants resolve determines visibilities of their
330-
// constructor using these field visibilities before attributes on them are are expanded.
330+
// constructor using these field visibilities before attributes on them are expanded.
331331
// The assumption is that the attribute expansion cannot change field visibilities,
332332
// and it holds because only inert attributes are supported in this position.
333333
match self {

compiler/rustc_hir_analysis/src/check/fallback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<'tcx> FnCtxt<'_, 'tcx> {
7272
//
7373
// - Unconstrained ints are replaced with `i32`.
7474
//
75-
// - Unconstrained floats are replaced with with `f64`.
75+
// - Unconstrained floats are replaced with `f64`.
7676
//
7777
// - Non-numerics may get replaced with `()` or `!`, depending on
7878
// how they were categorized by `calculate_diverging_fallback`

compiler/rustc_hir_analysis/src/check/generator_interior/drop_ranges/cfg_build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl<'a, 'tcx> DropRangeVisitor<'a, 'tcx> {
210210
}
211211

212212
/// For an expression with an uninhabited return type (e.g. a function that returns !),
213-
/// this adds a self edge to to the CFG to model the fact that the function does not
213+
/// this adds a self edge to the CFG to model the fact that the function does not
214214
/// return.
215215
fn handle_uninhabited_return(&mut self, expr: &Expr<'tcx>) {
216216
let ty = self.typeck_results.expr_ty(expr);

0 commit comments

Comments
 (0)