Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4bf25f4

Browse files
committedMar 18, 2025·
rebase and bump typos to 1.30.2
1 parent c8d9482 commit 4bf25f4

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed
 

‎.github/workflows/spellcheck.yml

+1-1
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.29.4
19+
uses: crate-ci/typos@v1.30.2
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_codegen_ssa/src/codegen_attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
378378
[sym::arm, sym::a32 | sym::t32]
379379
if !tcx.sess.target.has_thumb_interworking =>
380380
{
381-
tcx.dcx().emit_err(errors::UnsuportedInstructionSet {
381+
tcx.dcx().emit_err(errors::UnsupportedInstructionSet {
382382
span: attr.span(),
383383
});
384384
None

‎compiler/rustc_codegen_ssa/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub(crate) struct NullOnExport {
150150

151151
#[derive(Diagnostic)]
152152
#[diag(codegen_ssa_unsupported_instruction_set, code = E0779)]
153-
pub(crate) struct UnsuportedInstructionSet {
153+
pub(crate) struct UnsupportedInstructionSet {
154154
#[primary_span]
155155
pub span: Span,
156156
}

‎compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
10591059
);
10601060

10611061
// FIXME(#97583): Print associated item bindings properly (i.e., not as equality predicates!).
1062-
// FIXME: Turn this into a structured, translateable & more actionable suggestion.
1062+
// FIXME: Turn this into a structured, translatable & more actionable suggestion.
10631063
let mut where_bounds = vec![];
10641064
for bound in [bound, bound2].into_iter().chain(matching_candidates) {
10651065
let bound_id = bound.def_id();

‎compiler/rustc_ty_utils/src/opaque_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl<'tcx> OpaqueTypeCollector<'tcx> {
179179
}
180180
}
181181

182-
/// Checks the `#[define_opaque]` attributes on items and collectes opaques to define
182+
/// Checks the `#[define_opaque]` attributes on items and collects opaques to define
183183
/// from the referenced types.
184184
#[instrument(level = "trace", skip(self))]
185185
fn collect_taits_from_defines_attr(&mut self) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub trait RawFloat:
143143
/// smaller than `10^SMALLEST_POWER_OF_TEN`, which will round to zero.
144144
///
145145
/// The smallest power of ten is represented by `⌊log10(2^-n / (2^64 - 1))⌋`, where `n` is
146-
/// the smallest power of two. The `2^64 - 1)` denomenator comes from the number of values
146+
/// the smallest power of two. The `2^64 - 1)` denominator comes from the number of values
147147
/// that are representable by the intermediate storage format. I don't actually know _why_
148148
/// the storage format is relevant here.
149149
///

‎library/std/src/sys/pal/uefi/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ pub(crate) fn get_device_path_from_map(map: &Path) -> io::Result<BorrowedDeviceP
681681
}
682682

683683
/// Helper for UEFI Protocols which are created and destroyed using
684-
/// [EFI_SERVICE_BINDING_PROTCOL](https://uefi.org/specs/UEFI/2.11/11_Protocols_UEFI_Driver_Model.html#efi-service-binding-protocol)
684+
/// [EFI_SERVICE_BINDING_PROTOCOL](https://uefi.org/specs/UEFI/2.11/11_Protocols_UEFI_Driver_Model.html#efi-service-binding-protocol)
685685
pub(crate) struct ServiceProtocol {
686686
service_guid: r_efi::efi::Guid,
687687
handle: NonNull<crate::ffi::c_void>,

‎src/librustdoc/html/static/js/rustdoc.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ declare namespace rustdoc {
429429

430430
/**
431431
* Maps from crate names to trait implementation data.
432-
* Provied by generated `trait.impl` files.
432+
* Provided by generated `trait.impl` files.
433433
*/
434434
type Implementors = {
435435
[key: string]: Array<[string, number, Array<string>]>

‎src/tools/tidy/src/ext_tool_checks.rs

+1-1
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.29.4`".to_owned()),
526+
Some("install tool via `cargo install typos-cli@1.30.2`".to_owned()),
527527
));
528528
}
529529
Err(e) => return Err(e.into()),

‎typos.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ extend-exclude = [
77
"library/backtrace",
88
"library/stdarch",
99
# generated lorem ipsum texts
10-
"library/alloc/benches/str.rs",
11-
"library/alloc/tests/str.rs",
10+
"library/alloctests/benches/str.rs",
11+
"library/alloctests/tests/str.rs",
1212
]
1313

1414
[default.extend-words]

0 commit comments

Comments
 (0)
Please sign in to comment.