Skip to content

Commit bfc3ea0

Browse files
committed
check ./library too
1 parent 4e9424b commit bfc3ea0

File tree

19 files changed

+40
-32
lines changed

19 files changed

+40
-32
lines changed

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/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
}
@@ -247,7 +247,7 @@ async unsafe fn either<O: IntoFuture<Output = ()>, M: IntoFuture<Output = ()>, T
247247
this: *mut T,
248248
discr: <T as DiscriminantKind>::Discriminant,
249249
) {
250-
// SAFETY: Guaranteed by the safety section of this funtion's documentation
250+
// SAFETY: Guaranteed by the safety section of this function's documentation
251251
if unsafe { discriminant_value(&*this) } == discr {
252252
drop(other);
253253
matched.await

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3811,7 +3811,7 @@ where
38113811
/// used inside the `if const`.
38123812
/// Note that the two arms of this `if` really each become their own function, which is why the
38133813
/// macro supports setting attributes for those functions. The runtime function is always
3814-
/// markes as `#[inline]`.
3814+
/// marked as `#[inline]`.
38153815
///
38163816
/// See [`const_eval_select()`] for the rules and requirements around that intrinsic.
38173817
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/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@
792792
//!
793793
//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] only if all of its
794794
//! structurally-pinned fields are, too. This is [`Unpin`]'s behavior by default.
795-
//! However, as a libray author, it is your responsibility not to write something like
795+
//! However, as a library author, it is your responsibility not to write something like
796796
//! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides
797797
//! structural pinning to an inner field of `T`, which may not be [`Unpin`]! (Adding *any*
798798
//! projection operation requires unsafe code, so the fact that [`Unpin`] is a safe trait does

library/core/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,8 +1628,8 @@ mod prim_ref {}
16281628
/// let ptr: fn(usize) -> usize = add_one;
16291629
/// assert_eq!(ptr(5), 6);
16301630
///
1631-
/// let clos: fn(usize) -> usize = |x| x + 5;
1632-
/// assert_eq!(clos(5), 10);
1631+
/// let closure: fn(usize) -> usize = |x| x + 5;
1632+
/// assert_eq!(closure(5), 10);
16331633
/// ```
16341634
///
16351635
/// In addition to varying based on their signature, function pointers come in two flavors: safe

library/core/src/ptr/const_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl<T: ?Sized> *const T {
4646
if const #[rustc_allow_const_fn_unstable(const_raw_ptr_comparison)] {
4747
match (ptr).guaranteed_eq(null_mut()) {
4848
Some(res) => res,
49-
// To remain maximally convervative, we stop execution when we don't
49+
// To remain maximally conservative, we stop execution when we don't
5050
// know whether the pointer is null or not.
5151
// We can *not* return `false` here, that would be unsound in `NonNull::new`!
5252
None => panic!("null-ness of this pointer cannot be determined in const context"),

library/panic_unwind/src/seh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
264264
// runtime under a try/catch block and the panic that we generate here will be
265265
// used as the result of the exception copy. This is used by the C++ runtime to
266266
// support capturing exceptions with std::exception_ptr, which we can't support
267-
// because Box<dyn Any> isn't clonable.
267+
// because Box<dyn Any> isn't cloneable.
268268
macro_rules! define_cleanup {
269269
($abi:tt $abi2:tt) => {
270270
unsafe extern $abi fn exception_cleanup(e: *mut Exception) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl<T> OwnedProtocol<T> {
314314
let protocol: *mut T = Box::into_raw(Box::new(protocol));
315315
let mut handle: r_efi::efi::Handle = crate::ptr::null_mut();
316316

317-
// FIXME: Move into r-efi once extended_varargs_abi_support is stablized
317+
// FIXME: Move into r-efi once extended_varargs_abi_support is stabilized
318318
let func: BootInstallMultipleProtocolInterfaces =
319319
unsafe { crate::mem::transmute((*bt.as_ptr()).install_multiple_protocol_interfaces) };
320320

@@ -348,7 +348,7 @@ impl<T> Drop for OwnedProtocol<T> {
348348
// Do not deallocate a runtime protocol
349349
if let Some(bt) = boot_services() {
350350
let bt: NonNull<r_efi::efi::BootServices> = bt.cast();
351-
// FIXME: Move into r-efi once extended_varargs_abi_support is stablized
351+
// FIXME: Move into r-efi once extended_varargs_abi_support is stabilized
352352
let func: BootUninstallMultipleProtocolInterfaces = unsafe {
353353
crate::mem::transmute((*bt.as_ptr()).uninstall_multiple_protocol_interfaces)
354354
};

0 commit comments

Comments
 (0)