Skip to content

Commit 7fc0a9c

Browse files
committed
bump typos to 1.34 and fix new typos
1 parent e6bd905 commit 7fc0a9c

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: check typos
1818
# sync version with src/tools/tidy/src/ext_tool_checks.rs
19-
uses: crate-ci/typos@v1.30.2
19+
uses: crate-ci/typos@v1.34.0
2020
with:
2121
# sync target files with src/tools/tidy/src/ext_tool_checks.rs
2222
files: ./compiler ./library ./src/bootstrap ./src/librustdoc

compiler/rustc_const_eval/src/interpret/place.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ where
572572
Right((local, offset, locals_addr, layout)) => {
573573
if offset.is_some() {
574574
// This has been projected to a part of this local, or had the type changed.
575-
// FIMXE: there are cases where we could still avoid allocating an mplace.
575+
// FIXME: there are cases where we could still avoid allocating an mplace.
576576
Left(place.force_mplace(self)?)
577577
} else {
578578
debug_assert_eq!(locals_addr, self.frame().locals_addr());

compiler/rustc_hir_typeck/src/method/confirm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ impl<'a, 'tcx> ConfirmContext<'a, 'tcx> {
588588
let def_id = pick.item.def_id;
589589
let method_predicates = self.tcx.predicates_of(def_id).instantiate(self.tcx, all_args);
590590

591-
debug!("method_predicates after instantitation = {:?}", method_predicates);
591+
debug!("method_predicates after instantiation = {:?}", method_predicates);
592592

593593
let sig = self.tcx.fn_sig(def_id).instantiate(self.tcx, all_args);
594594
debug!("type scheme instantiated, sig={:?}", sig);

compiler/rustc_lint/src/reference_casting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidReferenceCasting {
4545
let init = cx.expr_or_init(e);
4646
let orig_cast = if init.span != e.span { Some(init.span) } else { None };
4747

48-
// small cache to avoid recomputing needlesly computing peel_casts of init
48+
// small cache to avoid recomputing needlessly computing peel_casts of init
4949
let mut peel_casts = {
5050
let mut peel_casts_cache = None;
5151
move || *peel_casts_cache.get_or_insert_with(|| peel_casts(cx, init))

compiler/rustc_trait_selection/src/traits/select/confirmation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
904904
let goal_kind =
905905
self.tcx().async_fn_trait_kind_from_def_id(obligation.predicate.def_id()).unwrap();
906906

907-
// If we have not yet determiend the `ClosureKind` of the closure or coroutine-closure,
907+
// If we have not yet determined the `ClosureKind` of the closure or coroutine-closure,
908908
// then additionally register an `AsyncFnKindHelper` goal which will fail if the kind
909909
// is constrained to an insufficient type later on.
910910
if let Some(closure_kind) = self.infcx.shallow_resolve(kind_ty).to_opt_closure_kind() {

library/core/src/num/dec2flt/float.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub trait RawFloat:
109109

110110
/// Round-to-even only happens for negative values of q
111111
/// when q ≥ −4 in the 64-bit case and when q ≥ −17 in
112-
/// the 32-bitcase.
112+
/// the 32-bit case.
113113
///
114114
/// When q ≥ 0,we have that 5^q ≤ 2m+1. In the 64-bit case,we
115115
/// have 5^q ≤ 2m+1 ≤ 2^54 or q ≤ 23. In the 32-bit case,we have
@@ -119,7 +119,7 @@ pub trait RawFloat:
119119
/// so (2m+1)×5^−q < 2^64. We have that 2m+1 > 2^53 (64-bit case)
120120
/// or 2m+1 > 2^24 (32-bit case). Hence,we must have 2^53×5^−q < 2^64
121121
/// (64-bit) and 2^24×5^−q < 2^64 (32-bit). Hence we have 5^−q < 2^11
122-
/// or q ≥ −4 (64-bit case) and 5^−q < 2^40 or q ≥ −17 (32-bitcase).
122+
/// or q ≥ −4 (64-bit case) and 5^−q < 2^40 or q ≥ −17 (32-bit case).
123123
///
124124
/// Thus we have that we only need to round ties to even when
125125
/// we have that q ∈ [−4,23](in the 64-bit case) or q∈[−17,10]

src/tools/tidy/src/ext_tool_checks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ fn spellcheck_runner(args: &[&str]) -> Result<(), Error> {
523523
"typos",
524524
"spellcheck file checks",
525525
// sync version with .github/workflows/ci.yml
526-
Some("install tool via `cargo install typos-cli@1.30.2`".to_owned()),
526+
Some("install tool via `cargo install typos-cli@1.34.0`".to_owned()),
527527
));
528528
}
529529
Err(e) => return Err(e.into()),

0 commit comments

Comments
 (0)