Skip to content

Commit a6dd658

Browse files
committed
Addressed comments by @compiler-errors and @bjorn3
1 parent c9c6e22 commit a6dd658

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

compiler/rustc_apfloat/src/ieee.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ mod sig {
26462646

26472647
// Convert the result having "2 * precision" significant-bits back to the one
26482648
// having "precision" significant-bits. First, move the radix point from
2649-
// position "2*precision - 1" to "precision - 1". The exponent need to be
2649+
// poision "2*precision - 1" to "precision - 1". The exponent need to be
26502650
// adjusted by "2*precision - 1" - "precision - 1" = "precision".
26512651
*exp -= precision as ExpInt + 1;
26522652

compiler/rustc_codegen_cranelift/src/pretty_clif.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! ss2 = explicit_slot 8 ; _4: (&&[u16],) size=8 align=8,8
2424
//! sig0 = (i64, i64, i64) system_v
2525
//! sig1 = (i64, i64, i64) system_v
26-
//! fn0 = collocated u0:6 sig1 ; Instance { def: Item(DefId(0/0:31 ~ example[8787]::{{impl}}[1]::call_mut[0])), substs: [ReErased, ReErased] }
26+
//! fn0 = colocated u0:6 sig1 ; Instance { def: Item(DefId(0/0:31 ~ example[8787]::{{impl}}[1]::call_mut[0])), substs: [ReErased, ReErased] }
2727
//!
2828
//! block0(v0: i64, v1: i64, v2: i64):
2929
//! v3 = stack_addr.i64 ss0

compiler/rustc_infer/src/infer/outlives/components.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn compute_components<'tcx>(
125125
// regionck more ways to prove that it holds. However,
126126
// regionck is not (at least currently) prepared to deal with
127127
// higher-ranked regions that may appear in the
128-
// trait-ref. Therefore, if we see any higher-rank regions,
128+
// trait-ref. Therefore, if we see any higher-ranked regions,
129129
// we simply fallback to the most restrictive rule, which
130130
// requires that `Pi: 'a` for all `i`.
131131
ty::Projection(ref data) => {

compiler/rustc_infer/src/infer/region_constraints/leak_check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl<'me, 'tcx> LeakCheck<'me, 'tcx> {
243243
// Update minimum universe of scc1.
244244
self.scc_universes[scc1] = scc1_universe;
245245

246-
// At this point, `scc_placeholder[scc1]` stores the placeholder that
246+
// At this point, `scc_placeholders[scc1]` stores the placeholder that
247247
// `scc1` must be equal to, if any.
248248
if let Some(scc1_placeholder) = self.scc_placeholders[scc1] {
249249
debug!(

compiler/rustc_middle/src/mir/interpret/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub enum UndefinedBehaviorInfo<'tcx> {
234234
},
235235
/// Something was divided by 0 (x / 0).
236236
DivisionByZero,
237-
/// Something was "remaineded" by 0 (x % 0).
237+
/// Something was "remainded" by 0 (x % 0).
238238
RemainderByZero,
239239
/// Signed division overflowed (INT_MIN / -1).
240240
DivisionOverflow,

compiler/rustc_mir_build/src/build/matches/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
444444
// we lower the guard.
445445
let target_block = self.cfg.start_new_block();
446446
let mut schedule_drops = true;
447-
// We keep a stack of all of the bindings and type descriptions
447+
// We keep a stack of all of the bindings and type ascriptions
448448
// from the parent candidates that we visit, that also need to
449449
// be bound for each candidate.
450450
traverse_candidate(

compiler/rustc_mir_build/src/build/matches/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
234234
};
235235
TerminatorKind::if_(self.tcx, Operand::Copy(place), true_bb, false_bb)
236236
} else {
237-
// The switch may be inexhaustible so we have a catch all block
237+
// The switch may be inexhaustive so we have a catch all block
238238
debug_assert_eq!(options.len() + 1, target_blocks.len());
239239
let otherwise_block = *target_blocks.last().unwrap();
240240
let switch_targets = SwitchTargets::new(

compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ impl<'p, 'tcx> fmt::Debug for DeconstructedPat<'p, 'tcx> {
16501650
}
16511651

16521652
// Without `cx`, we can't know which field corresponds to which, so we can't
1653-
// get the names of the fields. Instead we just display everything as a simple
1653+
// get the names of the fields. Instead we just display everything as a tuple
16541654
// struct, which should be good enough.
16551655
write!(f, "(")?;
16561656
for p in self.iter_fields() {

compiler/rustc_parse/src/parser/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<'a> Parser<'a> {
276276
lhs = self.parse_assoc_op_ascribe(lhs, lhs_span)?;
277277
continue;
278278
} else if op == AssocOp::DotDot || op == AssocOp::DotDotEq {
279-
// If we did not have to handle `x..`/`x..=`, it would be pretty easy to
279+
// If we didn't have to handle `x..`/`x..=`, it would be pretty easy to
280280
// generalise it to the Fixity::None code.
281281
lhs = self.parse_range_expr(prec, lhs, op, cur_op_span)?;
282282
break;

compiler/rustc_passes/src/stability.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
144144
}
145145

146146
if !self.tcx.features().staged_api {
147-
// Propagate instability. This can happen even for non-staged-api crates in case
147+
// Propagate unstability. This can happen even for non-staged-api crates in case
148148
// -Zforce-unstable-if-unmarked is set.
149149
if let Some(stab) = self.parent_stab {
150150
if inherit_deprecation.yes() && stab.level.is_unstable() {

0 commit comments

Comments
 (0)