Skip to content

Commit 9750e17

Browse files
committed
check ./library too
1 parent 53cfc30 commit 9750e17

File tree

28 files changed

+50
-42
lines changed

28 files changed

+50
-42
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
if: ${{ env.CI_JOB_NAME == 'mingw-check-tidy' }}
109109
uses: crate-ci/[email protected]
110110
with:
111-
files: ./compiler
111+
files: ./compiler ./library
112112
config: ./typos.toml
113113

114114
# Free up disk space on Linux by removing preinstalled components that

library/alloc/src/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
//! parameters (corresponding to `format_spec` in [the syntax](#syntax)). These
110110
//! parameters affect the string representation of what's being formatted.
111111
//!
112-
//! The colon `:` in format syntax divides indentifier of the input data and
112+
//! The colon `:` in format syntax divides identifier of the input data and
113113
//! the formatting options, the colon itself does not change anything, only
114114
//! introduces the options.
115115
//!

library/alloc/src/raw_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ impl<A: Allocator> RawVecInner<A> {
420420
match Self::try_allocate_in(capacity, AllocInit::Uninitialized, alloc, elem_layout) {
421421
Ok(this) => {
422422
unsafe {
423-
// Make it more obvious that a subsquent Vec::reserve(capacity) will not allocate.
423+
// Make it more obvious that a subsequent Vec::reserve(capacity) will not allocate.
424424
hint::assert_unchecked(!this.needs_to_grow(0, capacity, elem_layout));
425425
}
426426
this

library/alloc/tests/sort/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn check_is_sorted<T: Ord + Clone + Debug, S: Sort>(v: &mut [T]) {
3333
known_good_stable_sort::sort(known_good_sorted_vec.as_mut_slice());
3434

3535
if is_small_test {
36-
eprintln!("Orginal: {:?}", v_orig);
36+
eprintln!("Original: {:?}", v_orig);
3737
eprintln!("Expected: {:?}", known_good_sorted_vec);
3838
eprintln!("Got: {:?}", v);
3939
} else {

library/core/benches/num/int_pow/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ macro_rules! pow_bench_template {
2525
let mut exp_iter = black_box(&exp_array).into_iter();
2626

2727
(0..ITERATIONS).fold((0 as IntType, false), |acc, _| {
28-
// Sometimes constants don't propogate all the way to the
28+
// Sometimes constants don't propagate all the way to the
2929
// inside of the loop, so we call a custom expression every cycle
3030
// rather than iter::repeat(CONST)
3131
let base: IntType = $base_macro!(base_iter);

library/core/src/future/async_drop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<T> Future for AsyncDropOwning<T> {
4141
let dtor = Pin::new_unchecked(
4242
this.dtor.get_or_insert_with(|| async_drop_in_place(this.value.as_mut_ptr())),
4343
);
44-
// AsyncDestuctors are idempotent so Self gets idempotency as well
44+
// AsyncDestructors are idempotent so Self gets idempotency as well
4545
dtor.poll(cx)
4646
}
4747
}
@@ -246,7 +246,7 @@ async unsafe fn either<O: IntoFuture<Output = ()>, M: IntoFuture<Output = ()>, T
246246
this: *mut T,
247247
discr: <T as DiscriminantKind>::Discriminant,
248248
) {
249-
// SAFETY: Guaranteed by the safety section of this funtion's documentation
249+
// SAFETY: Guaranteed by the safety section of this function's documentation
250250
if unsafe { discriminant_value(&*this) } == discr {
251251
drop(other);
252252
matched.await

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3780,7 +3780,7 @@ where
37803780
/// used inside the `if const`.
37813781
/// Note that the two arms of this `if` really each become their own function, which is why the
37823782
/// macro supports setting attributes for those functions. The runtime function is always
3783-
/// markes as `#[inline]`.
3783+
/// marked as `#[inline]`.
37843784
///
37853785
/// See [`const_eval_select()`] for the rules and requirements around that intrinsic.
37863786
pub(crate) macro const_eval_select {

library/core/src/intrinsics/simd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ extern "rust-intrinsic" {
8585
#[rustc_nounwind]
8686
pub fn simd_shr<T>(lhs: T, rhs: T) -> T;
8787

88-
/// "Ands" vectors elementwise.
88+
/// "And"s vectors elementwise.
8989
///
9090
/// `T` must be a vector of integer primitive types.
9191
#[rustc_nounwind]
@@ -419,7 +419,7 @@ extern "rust-intrinsic" {
419419
#[rustc_nounwind]
420420
pub fn simd_reduce_min<T, U>(x: T) -> U;
421421

422-
/// Logical "ands" all elements together.
422+
/// Logical "and"s all elements together.
423423
///
424424
/// `T` must be a vector of integer or floating-point primitive types.
425425
///

library/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
#![warn(multiple_supertrait_upcastable)]
102102
#![allow(internal_features)]
103103
#![deny(ffi_unwind_calls)]
104-
// Do not check link redundancy on bootstraping phase
104+
// Do not check link redundancy on bootstrapping phase
105105
#![allow(rustdoc::redundant_explicit_links)]
106106
#![warn(rustdoc::unescaped_backticks)]
107107
//

library/core/src/macros/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ pub(crate) mod builtin {
15491549
/// NAME is a string that represents a valid function name.
15501550
/// MODE is any of Forward, Reverse, ForwardFirst, ReverseFirst.
15511551
/// INPUT_ACTIVITIES consists of one valid activity for each input parameter.
1552-
/// OUTPUT_ACTIVITY must not be set if we implicitely return nothing (or explicitely return
1552+
/// OUTPUT_ACTIVITY must not be set if we implicitly return nothing (or explicitly return
15531553
/// `-> ()`). Otherwise it must be set to one of the allowed activities.
15541554
#[unstable(feature = "autodiff", issue = "124509")]
15551555
#[allow_internal_unstable(rustc_attrs)]

0 commit comments

Comments
 (0)